广告投放

宝塔面板:MySQL无法启动解决方案

MySQL版本5.5。

报错信息

MySQL无法启动,报错信息如下:

190228 9:19:43 [ERROR] Can't init tc log
190228 9:19:43 [ERROR] Aborting

190228 9:19:43 InnoDB: Starting shutdown…
190228 9:19:44 InnoDB: Shutdown completed; log sequence number 1595685
190228 9:19:44 [Note] /www/server/mysqi/bin/mysqld: Shutdown complete

190228 9:27:50 [Note] Plugin FEDERATED" is disabled.
190228 9:27:50 InnoDB: The InnoDB memory heap is disabled
190228 9:27:50 InnoDB: Mutexes and rw_locks use GCC atomic builtins
190228 9:27:50 InnoDB: Compressed tables use zlib 1.2.3
190228 9:27:50 InnoDB: Using Linux native AIO
190228 9:27:50 InnoDB: Initializing buffer pool, size = 128.0M
190228 9:27:50 InnoDB: Completed initialization of buffer pool
190228 9:27:50 InnoDB: highest supported file format is Barracuda.
190228 9:27:51 InnoDB: Waiting for the background threads to start
190228 9:27:52 InnoDB: 5.5.61 started; log sequence number 1595685
/www/server/mysql/bin/mysqld: File './mysql-bin.000012' not found (Errcode: 2)
190228 9:27:52 [ERROR] Failed to open log (file ‘/mysql-ben.000012', ermo 2)
190228 9:27:52 [ERROR] Could not open log file
190228 9:27:52 [ERROR] Can't init tc log

190228 9:27:52 [ERROR] Aborting
190228 9:27:52 InnoDB: Starting shutdown…
190228 9:27:54 InnoDB: Shutdown completed; log sequence number 1595685
190228 9:27:54 [Note] /www/server/mysqi/bin/mysqld: Shutdown complete

原因

MySQL日志文件找不到或者损坏。

解决方案

SSH输入

/etc/init.d/mysqld stop rm -f /www/server/data/ib_logfile* rm -f /www/server/data/mysql-bin.* /etc/init.d/mysqld start
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
广告位招租919838898
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索