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成功
