Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0
来源:互联网 发布:上海微创软件待遇 编辑:程序博客网 时间:2024/05/21 14:32
对于使用了默认 my.cnf(一般教程都会教你使用support-files/my-medium.cnf)的Mysql服务来说如果中间使用了innodb的话,innodb默认的log file大小是56M
如果你的配置文件使用了类似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
- Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0
- InnoDB: Error: log file .\ib_logfile0 is of different size 0 10485760 bytes
- InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
- Fixing “InnoDB: Error: log file ./ib_logfile0 is of different size” Error
- InnoDB: Error: log file /home/mysqldata/ib_logfile0 is of different size
- InnoDB: Error: log file ./ib_logfile0 is of different size 50331648 bytes
- xtrabackup 恢复出现错误InnoDB: Error: log file ./ib_logfile2 is of different size 0 0 bytes
- mysqld_safe 启动、usr/local/mysql/data/ib_logfile0 is of different size ...的错误
- [ERROR] InnoDB: Data file /data/mysql/3310/data/ibdata1 is of a different size 1536 pages
- InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 640 pages
- The count of VLFs for different size of transaction log
- MySQL crash:InnoDB redo log error
- mysql报./ib_logfile0 启动失败解决办法
- MySQL##InnoDB: ERROR: the age of the last checkpoint is 9446699
- Mysql启动错误:“InnoDB: Error: unable to create temporary file”的解决方法
- MYSQL启动错误之[ERROR] Failed to open log (file './mysql-bin.000039', errno 2)
- 14.5.2 Changing the Number or Size of InnoDB Redo Log Files 改变InnoDB Redo Log Files的数量
- MFC程序默认用管理员身份打开,参考360安全卫士
- 黑马程序员-多线程
- Oracle存储过程返回游标实例详解
- Ajax 和 REST,第 2 部分
- java 获取URL
- Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0
- 搬迁Mysql的Data目录和Binlog目录
- ubuntu12.04安装Qt4/Qt5错误解决办法
- newInstance()和new
- 程序员的七条军规
- wxWidgets-窗口
- IBOutlet和IBAction
- page_fault_in_nonpaged_area(win32k.sys)错误解决方法
- Subsets II