skip-
grant
-tables
1
2
3
|
mysql>use mysql; mysql> update user set password = password ( ‘新密码‘ ) WHERE User = ‘root‘ ; mysql>flush privileges ; |
设置MySQL root的密码,布布扣,bubuko.com
原文:http://www.cnblogs.com/wjvcj/p/3808999.html