Home  >  Article  >  Database  >  MySQL无法启动1067错误的又一种解决方法(机房断电)_MySQL

MySQL无法启动1067错误的又一种解决方法(机房断电)_MySQL

WBOY
WBOYOriginal
2016-06-01 13:23:38869browse

bitsCN.com

启动服务发生1067错误:

1.删除datadir 下的用户数据库文件 和 日志文件 (ib_logfile0,ib_logfile1)。

2.删除innodb表空间ibdata1

3.启动mysql服务:

4.导入数据:

5.检查数据:

虽然这方法简单,但需要mysqldump导出的数据文件进行还原。

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn