sudo tail -f /usr/local/var/mysql/[your computer host name].err
2021-01-22 13:16:17 4581617088 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.42-84.2 started; log sequence number 149299467171
2021-01-22 13:16:17 123145364480000 [Note] InnoDB: Dumping buffer pool(s) not yet started
2021-01-22 13:16:17 4581617088 [Note] Plugin 'FEEDBACK' is disabled.
2021-01-22 13:16:17 4581617088 [Note] Recovering after a crash using tc.log
2021-01-22 13:16:17 4581617088 [ERROR] Bad magic header in tc log
2021-01-22 13:16:17 4581617088 [ERROR] Crash recovery failed. Either correct the problem (if it's, for example, out of memory error) and restart, or delete tc log and start mysqld with --tc-heuristic-recover={commit|rollback}
2021-01-22 13:16:17 4581617088 [ERROR] Can't init tc log
2021-01-22 13:16:17 4581617088 [ERROR] Aborting
我在本地运行 MariaDB 10.1 并启动了 MariaDB 10.5,不知何故我/usr/local/var/mysql/tc.log
受到了影响,我不得不重命名它以再次启动我的本地 10.1。
sudo mv /usr/local/var/mysql/tc.log /usr/local/var/mysql/tc.log_
sudo mysql.server start
Starting MariaDB
.210122 14:30:56 mysqld_safe Logging to '/usr/local/var/mysql/[your computer host name].err'.
210122 14:30:56 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
SUCCESS!