MySQL启动不了,InnoDB: auto-extending data file .\ibdata1 is of a different size 78592 pages (rounded down to MB) than specified in the .cnf file: initial 131072 pages, max 0 (relevant if non-zero) pages!

按搜索的结果,

先备份了ibdata1、ib_logfile0、ib_logfile1三个文件。

尝试去删除这三个文件,然后重启MySQL成功,但是进入库打开很多表时提示表不存在!、

 

去配置里看了下有如下一条配置,将其注释。

# innodb_data_file_path=ibdata1:2048M:autoextend

重启MySQL成功,进入库打开表格没有问题,数据都在。

posted @ 2019-07-09 12:10  jeff151013  阅读(523)  评论(0编辑  收藏  举报