Moodle-MySql停止工作

时间:2018-07-31 11:16:09

标签: mysql linux moodle digital-ocean

当我这样做

service mysql restart

遇到此错误

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

检查

systemctl status mysql.service

root@moodlelive-s-1vcpu-2gb-lon1-01:~# 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 Tue 2018-07-31 11:03:48 UTC; 3s ago
      Process: 25015 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
      Process: 25005 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
     Main PID: 25015 (code=exited, status=1/FAILURE);         : 25016 (mysql-systemd-s)
        Tasks: 2
       Memory: 308.0K
          CPU: 29ms
       CGroup: /system.slice/mysql.service
               └─control
                 ├─25016 /bin/bash /usr/share/mysql/mysql-systemd-start post
                 └─25026 sleep 1

    Jul 31 11:03:48 moodlelive-s-1vcpu-2gb-lon1-01 systemd[1]: Starting MySQL Community Server...
    Jul 31 11:03:48 moodlelive-s-1vcpu-2gb-lon1-01 mysql-systemd-start[25005]: my_print_defaults: [ERROR] Found op
    Jul 31 11:03:48 moodlelive-s-1vcpu-2gb-lon1-01 mysql-systemd-start[25005]: my_print_defaults: [ERROR] Fatal er
    Jul 31 11:03:48 moodlelive-s-1vcpu-2gb-lon1-01 mysqld[25015]: mysqld: [ERROR] Found option without preceding g
    Jul 31 11:03:48 moodlelive-s-1vcpu-2gb-lon1-01 mysqld[25015]: mysqld: [ERROR] Fatal error in defaults handling
    Jul 31 11:03:48 moodlelive-s-1vcpu-2gb-lon1-01 systemd[1]: mysql.service: Main process exited, code=exited, st

请帮助!

0 个答案:

没有答案