Computer environment
WIN10 64-bit Enterprise Edition
1. Unzip the zip file to a certain path.
2. My-default.ini renamed under Copy directory (My.ini)
3. Open My.ini
[MYSQLD] Add the following
Character-set-server=utf8
Other changes to the configuration as needed ...
4. Installation
The command is as follows
Open the Bin directory, press SHIFT, right mouse button
Input command
Mysqld--defaults-file=my.ini where the absolute path is copied here \my.ini--initialize--console
Wait, do not close the window.
Find this line.
Root of the initial random password, one will change the password to use.
5. After initialization is complete, start MySQL
Mysqld--console
After successful startup, minimize the window, and then open a.
7. Log in to MySQL
Mysql-u root-p
Just paste the random password and log in successfully.
8. Change the password
' Root '@'localhost' = PASSWORD (' new password ');
9. Test with Navicat
Start Mysql.bat
Suggestions:
Start mysql-5.7. -win32/bin/mysqld.exe--console
Or the way the next program starts.
Start mysql-5.7. -win32/bin/mysqld.exe--standalone
Note : Please refer to the folder structure.
Write down this installation process to make it easy for you to install MySQL database software with other students who are learning MySQL, or to put a U-disk in the school computer experiment.
MySQL Install (start programmatically) Zip version