Fedora27/28上启动mariadb/mysql时出现问题

fd3cxomn  于 2021-06-20  发布在  Mysql
关注(0)|答案(1)|浏览(421)

我正在尝试在Fedora28上安装mysql/mariadb,但安装之后它并没有启动服务器。
当我键入systemctl start 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*

有灯光来掩盖这个黑暗的问题吗?

q3aa0525

q3aa05251#

可能是零字节出现在 tc.log . 删除或重新启动进程应该可以工作。

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

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

相关问题