Windows10下安装mysql8正常使用,某次断电重启后无法启动的问题
1、使用场景:已正常使用很久,某次windows电脑断电重启,或者正常关机后,下次开机widnows,mysql服务无法启动,查看.error文件报错,类似如下
The error means that another program is using InnoDB's files. This might be a backup or antivirus software or another instance of MySQL. Please close it to get rid of this error.
2、检查错误:
然后使用如下命令检错
tasklist | findstr "mysqld"
netstat -aon | findstr "3306"
不知道pid就去如下目录(mysql/data下)中.pid文件打开查看,替换3306的pid去查找
3、我的结论:
我的这种情况,无任何报错,检错也没有任何结果,不是已开一个mysql,无法再次启动的问题。也没有暴力修改mysql参数和清缓存之类的。
4、解决方法
删除.err文件和.pid文件再次启动,恢复正常。