Create a new My.ini in the corresponding directory
[mysql]# set MySQL client default character setdefault-character-Set=UTF8 [Mysqld]skip-grant-tables# setting Port 3306=3306# Set up the MySQL installation directory Basedir=d:\mysql-5.7.Ten-winx64# Set the data storage directory for the MySQL database DataDir=d:\mysql-5.7.Ten-winx64\data# Maximum number of connections allowed Max_connections= $# The default character set used by the server is a 8-bit encoded latin1 character Set character-Set-server=utf8# default storage engine to use when creating a new tabledefault-storage-engine=innodb
Note in the cmd input net start mysql if MySQL does not start, first look at the installation directory there is no data this folder, if there is no
In cmd input mysqld--initialize (Initialize)
It should be OK at startup. --Be careful to enter the Bin folder of your installed directory to operate!!
MySQL free install version of the problem and the response