Now, the MySQL website only offers zip packages,
1th: Unzip to any folder of your own
Note: Although I did not try, but try not to have Chinese in the path
2nd: Add Environment variables
D:\web\mysql-5.7.11-winx64\bin
Add this path to the environment variable
3rd: Configure My-default.ini
After decompression, the folder has this file, open the configuration
, note datadir, although there is no data folder under the directory, but also do not create, to create their own, it will not start MySQL
Fourth step: Run cmd as Administrator Fifth step: CD to D:\web\mysql-5.7.11-winx64\bin directory below
Then execute:
Mysqld--initialize-insecure--user=mysql
Use-initialize to generate a random password, as you learn, use-initialize-insecure to generate a blank password. Default account Root
Sixth step: Execute Mysqld-install Seventh step: Start the net start MySQL, then can use the root login to use the Mysql-u root-p login, do not enter the password, the direct carriage return is possible. Eighth step: Execute mysqld--initialize
Windows7 64-bit installation MySQL 5.7.11 zip compression version