标签:sql window mysql table windows file user server
1.停止mysql
2.命令行启动mysql
mysqld --defaults-file="c:\mysql\mysql server 5.1\my.ini" --console --skip-grant-tables
3.无密码登录后执行以下sql
update mysql.user set password = password(‘123456‘) where user = ‘root‘;
flush privileges;
一切恢复正常!
windows下忘记mysql的root密码,布布扣,bubuko.com
标签:sql window mysql table windows file user server
原文地址:http://www.cnblogs.com/coffee_cn/p/3875267.html