手机
当前位置:查字典教程网 >编程开发 >mysql数据库 >Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes 的问题
Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes 的问题
摘要:如果你的配置文件使用了类似my-innodb-heavy-4G.cnf作为配置文件的话。Mysql可以正常启动,但innodb的表无法使用在...

如果你的配置文件使用了类似my-innodb-heavy-4G.cnf作为配置文件的话。

Mysql可以正常启动,但innodb的表无法使用

在错误日志里你会看到如下输出:

InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

现在需要做的事情就是把原来的 innodb 的ib_logfile×备份到一个目录下,然后删除掉原来的文件,重启 mysql。

你会看到ib_logfile*大小变成了你配置文件中指定的大小。

my-innodb-heavy-4G.cnf的话(log file 的大小是256M:innodb_log_file_size = 256M)

你会看到很多个268435456大小的文件。

【Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes 的问题】相关文章:

解除mysql 的全文索引限制

mysql 查询数据库中的存储过程与函数的语句

MYSQL中获取得最后一条记录的语句

mysql中文排序注意事项与实现方法

mysql Out of memory (Needed 16777224 bytes)的错误解决

mysql数据库远程访问设置方法

MySQL里Create Index 能否创建主键 Primary Key

mysql 有关“InnoDB Error ib_logfile0 of different size”错误

mysql中合并两个字段的方法分享

MySQL与MSSQl使用While语句循环生成测试数据的代码

精品推荐
分类导航