![无法启动 MySQL 服务器](https://linux22.com/image/1016517/%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8%20MySQL%20%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
我尝试在 Ubuntu 服务器上安装 MySQL。但是当我使用命令检查状态时systemctl status mysql
,我得到了
mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-02-18 14:38:40 IST; 8min ago
Process: 26867 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
Main PID: 13107 (code=exited, status=0/SUCCESS)
Feb 18 14:38:37 Ubuntu18 systemd[1]: Starting MySQL Community Server...
Feb 18 14:38:37 Ubuntu18 mysqld[26867]: Initialization of mysqld failed: 0
Feb 18 14:38:37 Ubuntu18 systemd[1]: mysql.service: Control process exited, code=exited status=1
Feb 18 14:38:40 Ubuntu18 systemd[1]: mysql.service: Failed with result 'exit-code'.
Feb 18 14:38:40 Ubuntu18 systemd[1]: Stopped MySQL Community Server.
root@Ubuntu18:/home/digith# systemctl start mysql.service
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
当我运行该命令时systemctl restart mysql
,输出是,
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.