[root@localhost data] systemctl start mysqld Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. [root@localhost data]# systemctl status mysqld.service ● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 二 2020-09-29 10:30:18 CST; 9s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 19328 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE) Process: 19305 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Main PID: 19328 (code=exited, status=1/FAILURE) Status: "Server startup in progress" Error: 13 (权限不够)
9月 29 10:30:17 localhost.localdomain systemd[1]: Starting MySQL Server... 9月 29 10:30:18 localhost.localdomain systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE 9月 29 10:30:18 localhost.localdomain systemd[1]: Failed to start MySQL Server. 9月 29 10:30:18 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state. 9月 29 10:30:18 localhost.localdomain systemd[1]: mysqld.service failed.