重装mysql无法启动服务的问题
发布:smiling 来源: PHP粉丝网 添加日期:2014-10-02 20:08:44 浏览: 评论:0
今天由于一些原因需要把mysql删除了然后重新安装,但是重新安装mysql之后无法重启了,下面我把我的解决办法分享给各位同学,希望对大家有所帮助.
Linux下mysql重装后无法重启解决办法
之前装的mysql5.1,但是经过系统还原后服务没有了,干脆升级到5.5,但是安装好了,配置时最后一步就是启动不了.
查看日志:programdata/data/pc.err发现:
- 111121 22:16:50 InnoDB: Log file .ib_logfile0 did not exist: new to be created
- InnoDB: Setting log file .ib_logfile0 size to 10 MB
- InnoDB: Database physically writes the file full: wait…
- 111121 22:16:50 InnoDB: Log file .ib_logfile1 did not exist: new to be created
- InnoDB: Setting log file .ib_logfile1 size to 10 MB
- InnoDB: Database physically writes the file full: wait…
- 111121 22:16:50 InnoDB: Cannot initialize created log files because
- 111121 22:16:50 InnoDB: data files are corrupt, or new data files were
- 111121 22:16:50 InnoDB: created when the database was started previous
- 111121 22:16:50 InnoDB: time but the database was not shut down
- 111121 22:16:50 InnoDB: normally after that.
- 111121 22:16:50 [ERROR] Plugin ‘InnoDB’ init function returned error.
- 111121 22:16:50 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
- 111121 22:16:50 [ERROR] Unknown/unsupported storage engine: INNODB --phpfensi.com
- 111121 22:16:50 [ERROR] Aborting
在网上一查,原来要将ib_logfile0,ib_logfile1,还有ibdata1这三个文件删掉才行,它们分别在data和programdata目录中(在配置时由你指定的).
windows下mysql重装后无法重启解决办法
解决方法:
1: 先卸载mysql,手动将其安装目录里没有删除干净的文件全部删除.
2: 将C:/ProgramData/MySQL 里有关mqsql的文件全部删除.
3: 重新安装 mysql 程序.
mysql服务就可以正常启动了.
Tags: 重装mysql mysql无法启动
相关文章
- ·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 InnoDB数据无法启动解决办法(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)