解决ERROR 1044 (42000): Access denied for user ‘‘@‘localhost‘ to database ‘mysql‘
# /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;
 
        