因为业务需求,需要进行对服务器进行降配操作,原定凌晨一点关机降配,服务器启动之后,mysql服务无法启动一直报错,错误信息如下:
数据库版本:
MariaDB10.1
服务器版本:
windows r2008
2021-07-15 10:14:06 524 [Note] InnoDB: Dumping buffer pool(s) not yet started
2021-07-15 10:14:06 1904 [Note] Plugin 'FEEDBACK' is disabled.
2021-07-15 10:14:06 1904 [ERROR] I/O error reading the header from the binary log, errno=175, io cache code=0
2021-07-15 10:14:06 1904 [ERROR] I/O error reading the header from the binary log
2021-07-15 10:14:06 1904 [ERROR] Can't init tc log
2021-07-15 10:14:06 1904 [ERROR] Aborting
问题造成原因猜测:
1,未停止mysql服务
2,强制关机
3,其他原因
查找资料,各种方式无法解决当前问题:
所以做以下尝试
1:移除以下文件
文件夹 C:\Program Files\MariaDB 10.1\data
然后执行 net start mysql
失败
2:移除上列文件+ibdata1文件
失败
3.移除上列文件+on.index文件
失败
3:上述操作不回滚 重启服务器执行 net start mysql
启动成功
连接服务器,发现数据库表变少了 原有 200+表连接后发现只剩下5张表
查找原因
1:吧ibdata1重新放入到文件夹下
执行net stop mysql
执行net start mysql
成功,而且表也存在