标签:
sudo su
mysqld_safe --skip-grant-tables --skip-networking &
UPDATE mysql.user SET password=PASSWORD(’新密码’) WHERE User=’root’;
mysql> FLUSH PRIVILEGES
update mysql.user set authentication_string=password(‘root‘) where user=‘root‘ ;
标签:
原文地址:http://www.cnblogs.com/gongdongyang/p/5536439.html