直接在任务管理器里结束mysqld进程,再开启提示出错。


cmd下错误提示提示:


Windows 无法启动 MySQL 服务(位于 本地计算机 上)。错误 1067: 进程意外终止。

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentati on for more details).


在事件查看器中查看错误,得到的错误提示:


InnoDB: Attempted to open a previously opened tablespace. Previous tablespace agent/ss_rss uses space ID: 8 at filepath: .\agent\ss_rss.ibd. Cannot open tablespace cominfo/accept which uses space ID: 8 at filepath: .\cominfo\accept.ibd

For more information, see Help and Support Center at http://www.mysql.com.  


解决方法:


进入MySQL安装目录\data\ 删除以下两个文件
ib_logfile0

ib_logfile1


重新开启mysql服务即可。记得先备份。






其它备忘

Windows cmd下进入到 MySQL安装目录\bin\


安装mysql服务

mysqld install


开启、停止mysql服务
net start mysql

net stop mysql


删除mysql服务

sc delete mysql


mysql错误日志

MySQL安装目录\data\*.err


类别:数据库   阅读(0)   评论(0)    发表时间:2015-08-21 20:35  星期五

评论区

发表评论

        姓名:
邮箱|网站:
        内容:

  (可按Ctrl+Enter提交)