, copy my-default.ini, rename it to my.ini, and edit the content as follows:
[client] port=3306 default-character-set=utf8 [mysqld] port=3306 character_set_server=utf8 #character_set_server=utf8 basedir=D:\mysql-5.7.16 datadir=D:\mysql-5.7.16\data sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
Add D:\mysql-5.7.16\bin to the path, create an environment variable MYSQLHOME=D:\mysql-5.7.16
, open cmd, execute: mysqld install
net start mysql This command reports an error: MySQL service cannot be started
Initialize mysql, create The data directory
mysqld --initialize is
finally executed: net start mysql
succeeds
Note : When executing install, if an error is reported: Install/Remove of the Service Denied, open cmd as an administrator