app教程网 学习教程 alter table nologging(unable to open database file)

alter table nologging(unable to open database file)

Mysql无法启动,因为硬盘已满。

我登录去看了一下,发现了原因。

Delete the log file of relational database, restart relational database and find an error: MySQL is being started. The pid file manager exited without updating the file. [failure]

这个原因网上有很多解释,但都不是我想说的。我想说的原因其实是个傻逼:data/mysql-bin.index没有被删除,data/mysql-bin.index是存放日志文件索引的文件。

只删除日志文件而不处理日志的索引文件显然是不可能的。

Delete the data/mysql-bin.index file, and then start mysqld.

很久没有写日记了,在这里也没有忘记。

本文来自网络,不代表本站立场,转载请注明出处:https: