找的好辛苦,总之是看日志
报错:
The innodb_system data file ‘./ibdata1’ is of a different size 4864 pages (rounded down to MB) than the 768 pages s
关键词
主要是innob引擎
参数文件中的系统表空间大于实际的系统表空间大小,导致启动报错。 更改/etc/my.cnf
innodb_data_file_path=ibdata1:1000M;ibdata2:1000M:autoextend
一般只有ibdata1,除非自己扩展,因为innob默认是共享表的空间,当然也可以单表共享空间。
切记要加autoextend