mysql - mariadb 無(wú)法啟動(dòng)服務(wù) macOS
問(wèn)題描述
160802 11:45:46 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql2016-08-02 11:45:47 4471989184 [Note] /usr/local/Cellar/mariadb/10.1.16/bin/mysqld (mysqld 10.1.16-MariaDB) starting as process 67267 ...2016-08-02 11:45:47 4471989184 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive2016-08-02 11:45:47 4471989184 [Note] InnoDB: Using mutexes to ref count buffer pool pages2016-08-02 11:45:47 4471989184 [Note] InnoDB: The InnoDB memory heap is disabled2016-08-02 11:45:47 4471989184 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2016-08-02 11:45:47 4471989184 [Note] InnoDB: Memory barrier is not used2016-08-02 11:45:47 4471989184 [Note] InnoDB: Compressed tables use zlib 1.2.82016-08-02 11:45:47 4471989184 [Note] InnoDB: Using SSE crc32 instructions2016-08-02 11:45:47 4471989184 [Note] InnoDB: Initializing buffer pool, size = 128.0M2016-08-02 11:45:47 4471989184 [Note] InnoDB: Completed initialization of buffer pool2016-08-02 11:45:47 4471989184 [Note] InnoDB: Highest supported file format is Barracuda.2016-08-02 11:45:47 4471989184 [Note] InnoDB: 128 rollback segment(s) are active.2016-08-02 11:45:47 4471989184 [Note] InnoDB: Waiting for purge to start2016-08-02 11:45:47 4471989184 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.30-76.3 started; log sequence number 40366372016-08-02 11:45:47 123145327255552 [Note] InnoDB: Dumping buffer pool(s) not yet started2016-08-02 11:45:47 4471989184 [Note] Plugin ’FEEDBACK’ is disabled.2016-08-02 11:45:47 4471989184 [Note] Recovering after a crash using tc.log2016-08-02 11:45:47 4471989184 [ERROR] Bad magic header in tc log2016-08-02 11:45:47 4471989184 [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}2016-08-02 11:45:47 4471989184 [ERROR] Can’t init tc log2016-08-02 11:45:47 4471989184 [ERROR] Aborting160802 11:45:49 mysqld_safe mysqld from pid file /usr/local/var/mysql/hostname.pid ended
mariadb是透過(guò)homebrew裝的,很久之前都可以使用(軟件版本已經(jīng)升級(jí)過(guò)),沒(méi)有修改過(guò)配置,錯(cuò)誤日志如上。
問(wèn)題解答
回答1:用locate命令或者從mysql配置文件里找到tc.log的位置,刪掉它,再啟動(dòng)服務(wù)。
相關(guān)文章:
1. javascript - vue提示語(yǔ)法錯(cuò)誤,請(qǐng)問(wèn)錯(cuò)誤在哪?2. ios - vue-cli開(kāi)發(fā)項(xiàng)目webstrom會(huì)在stylus樣式報(bào)錯(cuò),飆紅,請(qǐng)大神幫忙3. jquery中關(guān)于html和text有什么區(qū)別?4. css - 移動(dòng)端 oppo 手機(jī)之 Border-radius5. 淺談vue生命周期共有幾個(gè)階段?分別是什么?6. index.php錯(cuò)誤,求指點(diǎn)7. angular.js - angularjs中添加高德地圖API,地圖顯示不正常,控制臺(tái)報(bào)錯(cuò),何解?8. javascript - vue.js如何遞歸渲染組件.9. html - JavaScript的Dom操作如何改變子元素的文本內(nèi)容10. python - 抓包只抓到j(luò)son,真實(shí)的地址卻找不到
