在my.ini(linux下/etc/my.cnf)加上skip-innodb,就可以了。
我这样设置后,在linux下都没问题,今天在我本机winXP启动MYSQL,提示启动不起来。看下mysql目录的错误日志:
引用
090613 10:15:27 [ERROR] Default storage engine (InnoDB) is not available
090613 10:15:27 [ERROR] Aborting
090613 10:15:27 [Note] C:\www\mysql\bin\mysqld-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:\www\mysql\bin\mysqld-nt: ready for connections.
再删除这三个文件,加了skip-innodb后,启动日志:
引用
090613 10:30:12 [Note] C:\www\mysql\bin\mysqld-nt: Normal shutdown
090613 10:30:12 [Note] C:\www\mysql\bin\mysqld-nt: Shutdown complete
090613 10:30:17 [Note] C:\www\mysql\bin\mysqld-nt: ready for connections.
Version: '5.0.45' socket: '' port: 3306 Source distribution
那三个文件就不会自动产生了。
MYSQL无法启动提示: Default storage engine (InnoDB) is not available的解决方法
2019-11-18 15:09MYSQL教程网 Mysql
自己用的MYSQL都是用MYISAM数据库,还没涉及到需要INNODB,因此打算直接不加载INNODB引擎。
延伸 · 阅读
- 2019-11-18Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of di
- 2019-11-18MySQL从MyISAM转换成InnoDB错误与常用解决办法
- 2019-11-04MySQL不支持InnoDB的解决方法
- 2019-10-28mysql 中InnoDB和MyISAM的区别分析小结
- 2019-10-16MySQL两种表存储结构MyISAM和InnoDB的性能比较测试
- 2019-06-29Innodb中mysql快速删除2T的大表方法示例
精彩推荐
- Mysql
MySQL设置global变量和session变量的两种方法详解
这篇文章主要介绍了MySQL设置global变量和session变量的两种方法,每种方法给大家介绍的非常详细 ,需要的朋友可以参考下...
- Mysql
3步搞定纯真IP数据导入到MySQL的方法详解
免编程,3步搞定纯真IP数据导入到MySQL详解,好多做ip地址查询的朋友用的到。 ...
- Mysql
MySQL 管理
对于网站的开发者来说,MySQL是一个较受欢迎的选择,这不仅是因为它对于任何平台上的非商业应用都是免费的,而且也因为它的架设和使用非常的简单。...
- Mysql
processlist命令 查看mysql 线程
processlist命令的输出结果显示了有哪些线程在运行,可以帮助识别出有问题的查询语句,两种方式使用这个命令。 ...
- Mysql
Mysql Binlog数据查看的方法详解
这篇文章主要介绍了Mysql Binlog数据查看的方法详解,非常不错,具有一定的参考借鉴价值,需要的朋友可以参考下...
- Mysql
MySQL慢日志实践小结
这篇文章主要介绍了MySQL慢日志实践小结,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧...
- Mysql
linux下改良版本mysqldump来备份MYSQL数据库
我的备份脚本都是在凌晨执行的,经常在慢查询日志里面看到这样的信息:select * from table1; 之前一直很纳闷,最后才了解到原来是MYSQLDUMP搞的鬼。 ...
- Mysql
MySQL一个索引最多有多少个列?真实的测试例子
MySQL一个索引最多有多少个列?下面是具体的实现代码。 ...