记一次MySQL突然崩溃到正常运行的处理过程
1.Found invalid password for user: '[email protected]'; Ignoring userFor more information, see Help and Support Center at http://www.mysql.com.
2.Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private keyFor more information, see Help and Support Center at http://www.mysql.com.
等等。。。。还有几个错误信息忘了记录了。
看了一些别人的处理方式,再加上自己解决掉这个问题周后,基本上可以断定,应该是MySQL的登录信息丢失所致,虽然不知道是什么原因导致登录信息丢失。
解决方法很简单,就是重置密码。
1.找到MySQL的配置文件my.ini,Windows上,如果是默认路径安装的话,应该在C:\ProgramData\MySQL\MySQL Server 5.7这个路径下
2.在my.ini中加上 skip-grant-tables ,就可以跳过密码验证直接登录了,保存
3.重启MySQL
4.打开MySQL命令行,输入命令:
use mysql;
UPDATE user SET authentication_string=PASSWORD(
'在这里换成你的新密码'
) where USER=
'root'
;
OK!解决