Every time you install a database, such a problem always occurs. now record it for future reference .... Download the decompressed-zip version. Install the Configuration tutorial reference master Notes article-"MySQL-5613 decompress version (zip version) installation configuration tutorial" decompress, after creating each installation database, always have such a problem, now record down, for future reference ....
Download the decompressed-zip version. For installation configuration tutorial, refer to hongge notes article-MySQL-5.6.13 unzip version (zip version) installation configuration tutorial
After decompression, create a my. ini file as the MySQL configuration file.
Enter the command mysqld-install in cmd.exe to prompt that the service is successfully installed!
However, if you enter net start mysql in cmd.exe, the following error always occurs: [mysql service cannot be started; system error 1067] [this system error 1067 indicates that the system cannot find the file, the process cannot obtain the required files. The problem is my. ini], after reading a lot of information and trying the method, I finally solved the problem and MySQL service started successfully.
My. ini content is:
[Mysqld]
# Binding IPv4 and 3306 ports
Bind-address = 127.0.0.1
Port = 3306
# Set the installation directory of mysql
Basedir = D:/MySQL/mysql-5.6.21-win32/mysql-5.6.21-win32
# Set the directory for storing mysql database data
Datadir = D:/MySQL/mysql-5.6.21-win32/mysql-5.6.21-win32/Data [it must be the data folder in the decompressed folder. I initially set a custom folder, so it cannot be started successfully ...]
# Maximum number of connections allowed
Max_connections = 200
Related commands:
1) enter net start mysql ---- check whether the MySQL service is started
2) input mysqlshow --- to display the table in the database or database, or information about the column or index in the table.
3) Enter mysql-uroot-p --- to Enter MySQL. because the default password for MySQL installation is empty, press Enter when "Enter password:" appears, "mysql>" indicates that MySQL has been successfully entered as the root user.
4) enter the new password mysqladmin-uroot-p password and set <新密码> Replace it with your custom password and press enter. The system will prompt you to enter the password, which actually refers to the original password. because the original password is empty, you can press enter to complete the settings.
The installation process has been completed, and you will be able to complete the subsequent study experience ~~