<div><div>重置密码:my.cnf里添加</div><div>skip-grant-tables</div><div><br></div><div>mysql进入mysql后台</div><div>update mysql.user set authentication_string=password(´123456´) where User=´root´ and Host=´localhost´;</div></div></div>"/>
<div><div>重置密码:my.cnf里添加</div><div>skip-grant-tables</div><div><br></div><div>mysql进入mysql后台</div><div>update mysql.user set authentication_string=password(´123456´) where User=´root´ and Host=´localhost´;</div></div></div>"/>

关于mysql5.7初始化

1 楼
./bin/mysqld --initialize --datadir=mysql/data/ --user=mysql --basedir=mysql/

重置密码:my.cnf里添加
skip-grant-tables

mysql进入mysql后台
update mysql.user set authentication_string=password('123456') where User='root' and Host='localhost';
2018-06-12 10:20:24