我在使用Ubuntu 12.04上的mysql時遇到了一些麻煩。我希望這篇文章是在正確的論壇(如果不是,告訴我在哪裏移動)無法啓動mysql
當我運行:sudo的/etc/init.d/mysql,我得到這個消息
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mysql
start: Job failed to start
當我運行mysql -u root狀態,我得到這個
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
所以我試圖殺死進程,所以我跑了ps aux | grep的mysql的顯示這個
1000 3262 0.0 0.0 4388 832 pts/1 S+ 14:05 0:00 grep --color=auto mysqld
當我運行kill命令,我得到這個:
殺:沒有這樣的過程
當我啓動須藤的mysqld --verbose
[Warning] The syntax '--log-slow-queries' is deprecated and will be removed in a future release. Please use '--slow-query-log'/'--slow-query-log-file' instead.
121122 14:50:24 [ERROR] An old style --language value with language specific part detected: /usr/share/mysql/french/
121122 14:50:24 [ERROR] Use --lc-messages-dir without language specific part instead.
121122 14:50:24 [Note] Plugin 'FEDERATED' is disabled.
121122 14:50:24 InnoDB: The InnoDB memory heap is disabled
121122 14:50:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121122 14:50:24 InnoDB: Compressed tables use zlib 1.2.3.4
121122 14:50:24 InnoDB: Initializing buffer pool, size = 128.0M
121122 14:50:24 InnoDB: Completed initialization of buffer pool
121122 14:50:24 InnoDB: highest supported file format is Barracuda.
121122 14:50:24 InnoDB: Waiting for the background threads to start
121122 14:50:25 InnoDB: 1.1.8 started; log sequence number 2289875
121122 14:50:25 [ERROR] mysqld: unknown variable 'default-character-set=utf8'
121122 14:50:25 [ERROR] Aborting
121122 14:50:25 InnoDB: Starting shutdown...
121122 14:50:26 InnoDB: Shutdown completed; log sequence number 2289875
121122 14:50:26 [Note] mysqld: Arrêt du serveur terminé
有人請幫忙
您是否嘗試過使用'sudo /etc/init.d/mysql start'? –
確定這是我得到的而不是通過/etc/init.d調用init腳本,使用service(8) 實用程序,例如, service mysql start 由於您嘗試調用的腳本已轉換爲 Upstart作業,因此您還可以使用start(8)實用程序,例如,啓動mysql 啓動:作業啓動失敗 – user1611830
接下來需要深入查看錯誤日誌,或者從命令行運行'sudo mysqld --verbose'來查看它報告的問題。 –