简体   繁体   English

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

[英]Problems with start MariaDb / MySQL on Fedora 27 / 28

I'm trying just install mysql/mariadb on fedora 28 but after install it isn't starting server. 我正在尝试在fedora 28上仅安装mysql / mariadb,但安装后并没有启动服务器。

When I typed systemctl start mariadb.service got this message : 当我输入systemctl start mariadb.service时,收到以下消息:

Job for mariadb.service failed because the control process exited with error code. mariadb.service的作业失败,因为控制进程退出并显示错误代码。 See "systemctl status mariadb.service" and "journalctl -xe" for details. 有关详细信息,请参见“ systemctl status mariadb.service”和“ journalctl -xe”。

Analysing journal see these error messages : 分析日志看到以下错误消息:

*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*

Have sombody a light to put over this dark problem ? 有没有一个光来解决这个黑暗的问题?

It possibly zero byte appear on tc.log . 它可能为零字节,出现在tc.log Delete or r and restart the process should works. 删除或重新启动该程序应该可以。

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

Ref : 参考:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM