[ERROR] InnoDB: Data file /usr/local/mysql-5.6.30/data3306/ibdata1 is of a different size
[root@localhost mysql]# less /etc/my.cnf |grep innodb_data_file_path innodb_data_file_path = ibdata1:200M:autoextend [root@localhost mysql]# ls -lh /var/lib/mysql/ibdata1 -rw-rw---- 1 mysql mysql 18M Nov 12 22:00 /var/lib/mysql/ibdata1 由于参数设置和实际的文件大小不一致,启动mysql出现了上述的故障 此时我们可以选择修改my.cnf文件的配置或者直接注释掉这个参数设置,让mysql启动时用默认参数去检验 或者My.cnf文件中指定该参数等于实际文件的大小 [root@localhost mysql]# less /etc/my.cnf |grep innodb_data_file_path innodb_data_file_path = ibdata1:18M:autoextend
本文出自 “不抛弃!不放弃” 博客,请务必保留此出处http://thedream.blog.51cto.com/6427769/1835748
原文:http://thedream.blog.51cto.com/6427769/1835748