由於我從MySQL工作臺開始MySQLserver我得到這個:MySQL服務器無法通過MySQL Workbench啓動。給出錯誤!服務器退出而不更新PID文件
2015-09-26 14:07:40 - Starting server... 2015-09-26 14:07:40 - Executing '/usr/local/mysql/support-files/mysql.server start' 2015-09-26 14:07:40 - Start server: Starting MySQL 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: . 2015-09-26 14:07:40 - Start server: ........................................ 2015-09-26 14:07:40 - Start server: .................................................. ERROR! The server quit without updating PID file (/usr/local/mysql/data/tatianaeliksmbp.pid). 2015-09-26 14:07:40 - Server start done. 2015-09-26 14:07:40 - Checking server status... 2015-09-26 14:07:40 - Trying to connect to MySQL... 2015-09-26 14:07:40 - Can't connect to MySQL server on '127.0.0.1' (61) (2003) 2015-09-26 14:07:40 - Assuming server is not running 2015-09-26 14:07:40 - Checking server status... 2015-09-26 14:07:40 - Trying to connect to MySQL... 2015-09-26 14:07:40 - Can't connect to MySQL server on '127.0.0.1' (61) (2003) 2015-09-26 14:07:40 - Assuming server is not running
我該如何解決這個問題?並使其正確啓動?
此問題可能更適合https://serverfault.com,因爲它更多地是關於服務器配置而不是編程。 –
當問題與MySQL有關時,爲什麼用'SQL Server'標記? – Rahul
檢查error.log,它應該位於/var/lib/mysql/'hostname'.err或/usr/local/mysql/data/'hostname'.err,具體取決於分配。您還可以檢查my.cnf中是否存在登錄錯誤 –