配置文件:
[client]
port=3306
default-character-set=utf8
[mysqld]
port=3306
character_set_server=utf8
skip-grant-tables
#解壓目錄
basedir=F:\workspace\mysql-5.7.20-winx64\
#解壓目錄下data目錄
datadir=F:\workspace\mysql-5.7.20-winx64\data
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[WinMySQLAdmin]
初始化:
mysqld --initialize;
mysqld -install
net start mysql
首次進入修改root密碼:
update user set authentication_string=password('123') where user='root' and Host = 'localhost';
更新:
flush privileges;
重啓!OK!