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

3、重启服务service mysql stopservice mysql start

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

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

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

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:29
阅读量:29
阅读量:41
阅读量:64
阅读量:26