mysqld_safe 启动、usr/local/mysql/data/ib_logfile0 is of different size ...的错误
2012-08-03 14:34
627 查看
在linux环境下安装了二进制分发版的mysql 32位的后,采用的直接启动mysql服务,没有配置文件的情况下,启动正常了。然后采用配置文件 /etc/my.cnf 来配置全局变量后启动,发现启动mysqld_safe就一直报错了,具体错误信息为:
一直提示ib_logfile0这个文件的大小与设置的值不一样。启动失败。
查原因发现 是由于之前有启动,已经在data目录下生成了这些文件,所以你再设置变量值,又不是和该文件大小一致,就开始报错了。
解决办法:
直接在data目录下删除了之前启动生成的文件,包含二进制日志文件,然后再启动,没有该问题了!
InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 209715200 bytes! 120803 20:17:05 [ERROR] Plugin 'InnoDB' init function returned error. 120803 20:17:05 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 120803 20:17:05 [ERROR] Unknown/unsupported table type: innodb 120803 20:17:05 [ERROR] Aborting 120803 20:17:05 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 120803 20:17:05 mysqld_safe mysqld from pid file /usr/local/mysql/tmp/mysql.pid ended
一直提示ib_logfile0这个文件的大小与设置的值不一样。启动失败。
查原因发现 是由于之前有启动,已经在data目录下生成了这些文件,所以你再设置变量值,又不是和该文件大小一致,就开始报错了。
解决办法:
直接在data目录下删除了之前启动生成的文件,包含二进制日志文件,然后再启动,没有该问题了!
相关文章推荐
- 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
- Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0
- Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes 的问题
- 启动Mysql时报错:mysqld_safe mysqld from pid file /usr/local/mysql/data/Linux.pid ended
- mysql 有关“InnoDB Error ib_logfile0 of different size”错误
- mysql 有关“InnoDB Error ib_logfile0 of different size”错误
- mysqld_safe mysqld from pid file /usr/local/mysql/data/localhost.localdomain.pid ended 的解决办法
- linux下安装mysql问题总结(一)mysqld_safe mysqld from pid file /usr/local/mysql/data/mysql.pid ended
- InnoDB: Error: log file /home/mysqldata/ib_logfile0 is of different size
- centos服务器异常断电mysql启动异常启动Mysql时报错:mysqld_safe mysqld from pid file /usr/local/mysql/Linux.pid end
- mysqld_safe启动报错 mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable
- mysqld_safe启动报错 mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable
- xtrabackup备份mysql“ib_logfile0 is of different”错误分析
- InnoDB: Error: log file ./ib_logfile0 is of different size 50331648 bytes
- 启动mysql服务失败The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid).[失败]
- MySQL无法启动Couldn't find MySQL server (/usr/bin/mysqld_safe)”
- mac 下从设置启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mys
- mysql启动之 ERROR! The server quit without updating PID file (/usr/local/mysql/data/gujingdeMacBook-Pro
- Fixing “InnoDB: Error: log file ./ib_logfile0 is of different size” Error