ERROR 1045 (28000): Access denied for user..

2024-10-21 11:10:52

1、命令行终端登录mysql时界面出现:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

ERROR 1045 (28000): Access denied for user..

3、重启服务service mysql stopservice mysql start

ERROR 1045 (28000): Access denied for user..

5、输入修改密码的命令发现出现错误提示:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

ERROR 1045 (28000): Access denied for user..

7、退出mysql重新进入mysql配置文件sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf将添加的skip-grant-tables删除然后保存退出

ERROR 1045 (28000): Access denied for user..

8、重启服务service mysql restart登录mysql成功

ERROR 1045 (28000): Access denied for user..
猜你喜欢