解决ERROR 1044 (42000): Access denied for user ‘‘@‘localhost‘ to database ‘mysql‘
原创 2014年05月11日 11:42:25
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’;
delete from user where USER=‘‘;
mysql> FLUSH PRIVILEGES;
mysql> quit;
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'(转)
原文地址:https://www.cnblogs.com/miaoer/p/8119625.html
时间: 2024-10-10 01:35:09