ERROR 1045 (28000): Access denied for user ‘root’@'localhost’ (using password: NO)
2012-05-11 14:16
441 查看
http://www.rajatswarup.com/blog/2010/07/24/error-1045-28000-access-denied-for-user-rootlocalhost-using-password-no/
If this is the error you are getting then one of the solutions is to reset your root password on the MySQL database server.
At this point you get the mysql command shell. You will need to update the root password and flush the table when you reset the password.
Now that you’ve flushed your passwords, just restart your mysql daemon.
You should be all set now!
If this is the error you are getting then one of the solutions is to reset your root password on the MySQL database server.
$ pkill mysql $ sudo mysqld --skip-grant-privileges $ mysql
At this point you get the mysql command shell. You will need to update the root password and flush the table when you reset the password.
mysql> set UPDATE mysql.user SET Password=PASSWORD('YOUR_NEW_PASSWORD') WHERE User='root'; mysql> FLUSH PRIVILEGES;
Now that you’ve flushed your passwords, just restart your mysql daemon.
$ sudo pkill mysqld $ sudo /etc/init.d/mysqld start $ mysql -u root -p Enter Password: YOUR_NEW_PASSWORD mysql>
You should be all set now!
相关文章推荐
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Linux mysql: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) 的解决办
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- 第一次配置mysql是出现错误:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- mysql-->ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Mysql没有初始密码(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- 解决MySQL 报错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ubuntu14.10下解决"ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"