Download good mysql-5.7.21-winx64 After decompression is no data and My.ini two files, the first new My.ini file and data empty folder
The 1,my.ini file is configured as follows:
[MySQL]
# Set the MySQL client default character set
Default-character-set=utf8
[Mysqld]
#设置3306端口
Port = 3306
# set up the MySQL installation directory
Basedir=d:\mysql-5.7.21-winx64 (Write your own decompression path)
# Set up a storage directory for MySQL database data
Datadir=d:\mysql-5.7.21-winx64\data (Write your own decompression path)
# Maximum number of connections allowed
max_connections=200
# The character set used by the service side defaults to the 8-bit encoded latin1 character set
Character-set-server=utf8
# The default storage engine that will be used when creating a new table
Default-storage-engine=innodb
2. Add bin directory to PATH environment variable
3, enter the cmd-> in the Admin province to enter the D-disk installation directory under the bin to perform the Mysqld install service
4, run mysqld--initialize-insecure--user=mysql
5, run MySQL service net start mysql shutdown mysql service command is net stop MySQL
6, login MySQL mysql-u root-p
MYSQL-5.7.21-WINX64 installation Process