2016-11-06 148 views
1

重新啓動服務器後,我無法啓動mysql再次無法啓動MySQL服務器

我收到這樣的信息:

Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. 

我試圖journalctl -xe並收到該

-- Subject: Unit mysql.service has failed 
-- Defined-By: systemd 
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
-- 
-- Unit mysql.service has failed. 
-- 
-- The result is failed. 
Nov 06 21:25:57 myserver systemd[1]: mysql.service: Unit entered failed state. 
Nov 06 21:25:57 myserver systemd[1]: mysql.service: Failed with result 'exit-code'. 
Nov 06 21:25:57 myserver systemd[1]: mysql.service: Service hold-off time over, scheduling restart. 
Nov 06 21:25:57 myserver systemd[1]: Stopped MySQL Community Server. 
-- Subject: Unit mysql.service has finished shutting down 
-- Defined-By: systemd 
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
-- 
-- Unit mysql.service has finished shutting down. 
Nov 06 21:25:57 myserver systemd[1]: Starting MySQL Community Server... 
-- Subject: Unit mysql.service has begun start-up 
-- Defined-By: systemd 
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
-- 
-- Unit mysql.service has begun starting up. 
Nov 06 21:25:58 myserver systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE 

這裏是結果爲systemctl status mysql.service

● mysql.service - MySQL Community Server 
    Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) 
    Active: activating (start-post) (Result: exit-code) since Sun 2016-11-06 21:29:00 UTC; 21s ago 
    Process: 4563 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE) 
    Process: 4560 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS) 
Main PID: 4563 (code=exited, status=1/FAILURE);   : 4566 (mysql-systemd-s) 
    Tasks: 2 
    Memory: 320.0K 
     CPU: 400ms 
    CGroup: /system.slice/mysql.service 
      └─control 
      ├─4566 /bin/bash /usr/share/mysql/mysql-systemd-start post 
      └─4625 sleep 1 

Nov 06 21:29:00 myserver systemd[1]: Starting MySQL Community Server... 
Nov 06 21:29:01 myserver systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE 

請幫忙!謝謝!

+0

「重置ubuntu服務器」是什麼意思? – arkascha

+0

@Arkascha我的意思是重新啓動* – user3518291

+2

你檢查過日誌文件,即'/ var/log/mysql/error.log'嗎? – Cyclonecode

回答

2

我檢查mysql後發現瞭解決方案error.log

磁盤已滿。