修改 my-default.ini
basedir=D:\Program Files\mysql-5.7.10-winx64
datadir=D:\Program Files\mysql-5.7.10-winx64\data
命令
mysqld --initialize --user=mysql --console
mysqld --install MySQL
net start MySQL
mysql -u root -p
set password for root@localhost = password('123');
basedir=D:\Program Files\mysql-5.7.10-winx64
datadir=D:\Program Files\mysql-5.7.10-winx64\data
命令
mysqld --initialize --user=mysql --console
mysqld --install MySQL
net start MySQL
mysql -u root -p
set password for root@localhost = password('123');