时间:2021-07-01 10:21:17 帮助过:21人阅读
# /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'(转)
标签:ase family base user nbsp bar amp denied tag