mysql-5.7.21-winx64 installation process

After the downloaded mysql-5.7.21-winx64 is decompressed, there are no data and my.ini files. First, create a new my.ini file and an empty data folder.

1. The my.ini file is configured as follows:

[mysql]
# Set mysql client default character set
default-character-set=utf8
[mysqld]
# Set 3306 port
port = 3306
# Set mysql installation directory
basedir=D:\mysql-5.7.21-winx64 (write your own Decompression path)
# Set the storage directory of mysql database data
datadir=D:\mysql-5.7.21-winx64\data (write your own decompression path)
# Allow the maximum number of connections
max_connections=200
# The character set used by the server defaults to 8-bit encoded latin1 character set
character-set-server=utf8
# The default storage engine that will be used when creating new tables
default-storage-engine=INNODB

2. Add the bin directory to the path environment variable

3. Enter cmd->enter D drive installation directory bin as administrator province and execute mysqld install installation service

 

4. Run mysqld --initialize-insecure --user=mysql

5. Run the MySQL service net start mysql The command to close the MySQL service is net stop mysql

6. Log in to MySQL mysql -u root -p

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325031455&siteId=291194637