Access denied for user ‘root‘@‘localhost‘ (using password:NO)
sudo /etc/init.d/mysqld stop //关闭mysql mysqld_safe --user=mysql --skip-grant-tables --skip-networking & mysql -u root mysql mysql> UPDATE user SET Password=PASSWORD(‘你想要的密码‘) where USER=‘root‘; mysql> FLUSH PRIVILEGES;
本文出自 “事在人为,知在天意” 博客,请务必保留此出处http://yangsj.blog.51cto.com/8702844/1711022
linux MySql问题Access denied for user 'root'@'localhost' (using password:YES)
原文:http://yangsj.blog.51cto.com/8702844/1711022