在Fedora 27 / 28上启动MariaDb / MySQL的问题



我正在尝试在Fedora 28上安装mysql/mariadb,但安装后它无法启动服务器。

当我键入systemctl启动mariadb.service时收到此消息:

mariadb.service 的作业失败,因为控制进程退出并显示错误代码。 有关详细信息,请参阅 "systemctl status mariadb.service" 和 "journalctl -xe"。

分析日志看到这些错误消息:

*2018-09-03  8:01:20 0 [Note] Recovering after a crash using tc.log
set 03 08:01:20 localhost.localdomain 
mysqld[4944]: 2018-09-03  8:01:20 0 [ERROR] Recovery failed! You must enable all engines that were enabled at t>
set 03 08:01:20 localhost.localdomain 
mysqld[4944]: 2018-09-03  8:01:20 0 [ERROR] Crash recovery failed. Either correct the problem (if it's, for exa>
set 03 08:01:20 localhost.localdomain 
mysqld[4944]: 2018-09-03  8:01:20 0 [ERROR] Can't init tc log
set 03 08:01:20 localhost.localdomain 
mysqld[4944]: 2018-09-03  8:01:20 0 [ERROR] Aborting*

有没有一盏灯来克服这个黑暗的问题?

它可能为零字节出现在tc.log上。删除或 r 并重新启动该过程应该可以工作。

sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc.log.bak
systemctl restart mariadb.service

裁判:

  1. https://fransdejonge.com/2018/02/mariadb-fix-cant-init-tc-log-error/
  2. https://bbs.archlinux.org/viewtopic.php?id=206379

最新更新