MariaDB [ERROR] Can’t init tc log

If you found this post helpful, kindly share it and show your support :)

Issues :-

When performed an upgrade, rebooted and MySQL isn’t starting.  The key error seems to be “[ERROR] Can’t init tc log”

  • Plesk is inaccessible with the following error:
ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory 
Additionally, an exception has occurred while trying to report this error: Zend_Exception 
No entry is registered for key & #039 ;translate& #039 ; (Abstract.php:144)
  • mariadb service is not starting:
# service mariadb start 
Starting mariadb (via systemctl): Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details. 
  • journalctl -xe shows the following:
Dec 12 17:23:24 mysqld[7512]: 2017-12-12 17:23:24 140696659249408 [ERROR] Can't init tc log 
Dec 12 17:23:24 mysqld[7512]: 2017-12-12 17:23:24 140696659249408 [ERROR] Aborting 
Dec 12 17:23:27 systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE 
Dec 12 17:23:27 systemd[1]: Failed to start MariaDB database server.

Cause :- 

  • Corrupted tc.log file.

Resolution :-  

Just to go ahead and move the tc.log file under the  /var/lib/mysql to another path For eg. /root

mv /var/lib/mysql/tc.log  /root

Then start mariadb service

service mariadb start

This will resolve the issue 🙂


Mohammed Noufal

I'm Mohammed Noufal, working as Server Admin for the last 10 years.  In my day-to-day life, l had to face different problems related to Web-hosting. On my website, you can find solutions for different Web-hosting-related problems. Sometimes, I spent hours searching/googling to find a solution. This inspired me to start a website that gives solutions to different Webhosting problems. This website includes basic Linux and windows commands, and different control panels like cPanel, Plesk, DirectAdmin, Webmin & so on. You can find solutions and or suggestions for different Web-hosting related problems from here. Hence I would like to say Errorlogz is your server protector.  I will be glad if Logdetect can help any one of the Server admins to find a solution to his problem.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *