mysql ERROR 1045 (28000): Access denied for user 'ro
程序员文章站
2022-06-14 20:21:37
...
mysql 安装后,登录报错,虽然安装时设置了密码。 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方法: # mysql -u root mysql mysql UPDATE user SET Password=PASSWORD('newpassword') where USER='root'; m
mysql 安装后,登录报错,虽然安装时设置了密码。
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
解决方法:
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysqld restart
在命令行再次修改后,重启mysql服务即可。
推荐阅读
-
MySQL密码正确却无法本地登录-1045 Access denied for user 'root'@'localhost' (using password:YES
-
ERROR 1045 (28000): Access denied for user ''root''@''localhost'' (using passwor
-
java访问数据库被拒绝,不能连接数据库ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
-
ERROR 1045 (28000): Access denied for user ''root''@''localhost'' (using password: YES)实用解决方案
-
提示:ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'的错误如何解决?
-
ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)
-
ERROR 1045: Access denied for user: root@localhost (Using password: NO)
-
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
-
转载:解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passw
-
转载:解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passw