Eu tive o mesmo problema e olhei para /var/log/mysql/error.log
, e descobri que usei um nome de variável inválido (assim, no meu caso, o erro foi [ERROR] unknown variable 'mywrongvar=value'
)
Ok, tenho trabalhado na tentativa de encontrar uma correção para isso, mas sempre que digito "service mysql restart" ou "service mysql start", retorno com este erro:
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
Depois de executar o comando "systemctl status mysql.service", recebo isto:
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled
Active: activating activating (start-post) (Result: exit-code) since Mon 2016-08-08 21:30:55 CEST; 15
Process: 17334 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
Process: 17332 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0
Main PID: 17334 (code=exited, status=1/FAILURE); : 17335 (mysql-systemd-s)
CGroup: /system.slice/mysql.service
└─control
├─17335 /bin/bash /usr/share/mysql/mysql-systemd-start post
└─17450 sleep 1
Agora eu não sou genious quando se trata de Ubuntu, então eu literalmente não tenho idéia do que está acontecendo aqui, o que é realmente estranho ....
Eu também vou postar o journalctl -xe, se houver alguma ajuda:)
Aug 08 21:45:09 serenitypvp systemd[1]: Failed to start MySQL Community Server.
-- 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.
Aug 08 21:45:09 serenitypvp systemd[1]: mysql.service: Unit entered failed state.
Aug 08 21:45:09 serenitypvp systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 08 21:45:09 serenitypvp systemd[1]: mysql.service: Service hold-off time over, scheduling
Qualquer ajuda seria muito apreciada, obrigado!
Eu tive o mesmo problema e olhei para /var/log/mysql/error.log
, e descobri que usei um nome de variável inválido (assim, no meu caso, o erro foi [ERROR] unknown variable 'mywrongvar=value'
)