1. mysql.server stop
2. xxx/mysqld_safe --skip-grant-tables &
3. mysql -uroot
4. mysql> update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost';
5. flush privileges;
6. mysql.server start
mysql 5.7默认root密码重设
猜你喜欢
转载自bucketli.iteye.com/blog/2397309
今日推荐
周排行