mysql InnoDB数据无法启动解决办法
发布:smiling 来源: PHP粉丝网 添加日期:2014-10-17 14:09:18 浏览: 评论:0
在my.ini(linux下/etc/my.cnf)加上skip-innodb,就可以了, 我这样设置后,在linux下都没问题,今天在我本机winXP启动MYSQL,提示启动不起来,看下mysql目录的错误日志,引用.
出现如下语句:The ‘InnoDB' feature is disabled; you need MySQL built with ‘InnoDB' to have it working;
是mysql教程配置文件禁掉了这个选项,关闭mysql数据库,在mysql的安装目录中找到my.ini文件,找到skip-innodb,在前面加上#号,保存,开启mysql数据库,搞定.
这也是开启Mysql数据库InnoDB功能的方法.
启动不解决方法:
- 090613 10:15:27 [ERROR] Default storage engine (InnoDB) is not available
- 090613 10:15:27 [ERROR] Aborting
- 090613 10:15:27 [Note] C:wwwmysqlbinmysqld-nt: Shutdown complete
估计是上次加了参数后,一直没启动起来,已经很久没用本机的MySQL了,查了下,原来my.ini里有一句:default-storage-engine=INNODB,把默认的engine设为INNODB,而我又加了skip-innodb,怪不得启不来了.
将default-storage-engine改为MYISAM,MYSQL启动OK,在skip-innodb下,data目录下的ibdata1,ib_logfile0,ib_logfile1这三个文件就不需要了,就可以删除.
测试了下,在没加skip-innodb时,删除了这三个文件,启动时会自动创建这三个文件,日志如下:
- 引用
- InnoDB: The first specified data file .ibdata1 did not exist:
- InnoDB: a new database to be created!
- 090613 10:19:37 InnoDB: Setting file .ibdata1 size to 10 MB
- InnoDB: Database physically writes the file full: wait...
- 090613 10:19:37 InnoDB: Log file .ib_logfile0 did not exist: new to be created
- InnoDB: Setting log file .ib_logfile0 size to 24 MB
- InnoDB: Database physically writes the file full: wait...
- 090613 10:19:38 InnoDB: Log file .ib_logfile1 did not exist: new to be created
- InnoDB: Setting log file .ib_logfile1 size to 24 MB
- InnoDB: Database physically writes the file full: wait...
- InnoDB: Doublewrite buffer not found: creating new
- InnoDB: Doublewrite buffer created
- InnoDB: Creating foreign key constraint system tables
- InnoDB: Foreign key constraint system tables created
- 090613 10:19:39 InnoDB: Started; log sequence number 0 0
- 090613 10:19:39 [Note] C:wwwmysqlbinmysqld-nt: ready for connections. --phpfensi.com
再删除这三个文件,加了skip-innodb后,启动日志:
- 引用
- 090613 10:30:12 [Note] C:wwwmysqlbinmysqld-nt: Normal shutdown
- 090613 10:30:12 [Note] C:wwwmysqlbinmysqld-nt: Shutdown complete
- 090613 10:30:17 [Note] C:wwwmysqlbinmysqld-nt: ready for connections.
- Version: '5.0.45' socket: '' port: 3306 Source distribution
Tags: InnoDB无法启动 mysql无法启动
相关文章
- ·重装mysql无法启动服务的问题(2014-10-02)
- ·MySQL无法启动问题总结(2014-10-02)
- ·解决由于日志占满空间导致的MySQL无法启动问题(2014-10-04)
- ·linux下mysql服务无法启动(2014-10-04)
- ·MySQL无法启动、无法停止各种解决方法总结(2014-10-08)
- ·MySQL无法启动:Table mysql.host doesn t exist(2014-10-09)
- ·mysql无法启动问题分析与解决办法(2014-10-14)
- ·mysql无法启动服务,mysql卡死解决办法(2014-10-17)
- ·mysql删除mysql-bin.000xxx文件导致mysql无法启动解决方法(2014-11-24)
- ·解决mysqld_safe无法启动问题的方法(2015-04-18)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)