WIN10 installation Mysql5.7.28

1. official website to download and extract the mysql-5.7.28
Download: https://www.mysql.com/
2. Create a mysql.ini files and data folders in the installation directory
3. Open the file and add the following mysql.ini
4 open the file in the installation directory bin folder, press the shift key + right-click, click "open Powershell window here" to open the console
5. execute the MySQL initialization command to generate the root user and no password;
./mysqld --initialize -insecure
6. The mounting system service mysql
./mysql -install
7. The service start mysql
NET start mysql
8. The log database (since the password is empty, directly enter the password prompt)
mysql -uroot--p
9. The change password
set password = password ( "password you want to set");
10. quit mysql management side, switch to add a root password
quit
mysql-uroot--p
11. Navicat or SQLyog use graphical tool to connect the database to check whether the installation was successful.

Guess you like

Origin www.cnblogs.com/HJSong/p/12129250.html