Mysql重置密码问题
second60 20200705
如果新安装了mysql或忘记了密码,经常出现的问题有:
[root@VM_0_9_centos mysql]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
那么解决的办法是重置密码
1.关闭mysql服务器
2.修改配置,跳过验证过程
方法一:在配置中修改 ,找到my.cnf 在[mysqld] 最后添加一句 skip-grant-tables
[mysqld]
…