Jun 22 21:40:11 test1 systemd[1]: Starting LSB: start and stop MariaDB...
Jun 22 21:40:11 test1 mysqld[29013]: Starting MariaDB.190622 21:40:11 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jun 22 21:40:11 test1 mysqld[29013]: 190622 21:40:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jun 22 21:40:12 test1 mysqld[29013]: /etc/rc.d/init.d/mysqld: line 264: kill: (29029) - No such process
Jun 22 21:40:12 test1 mysqld[29013]: ERROR!
Jun 22 21:40:12 test1 systemd[1]: mysqld.service: control process exited, code=exited status=1
Jun 22 21:40:12 test1 systemd[1]: Failed to start LSB: start and stop MariaDB.
Jun 22 21:40:12 test1 systemd[1]: Unit mysqld.service entered failed state.
Jun 22 21:40:12 test1 systemd[1]: mysqld.service failed.
从错误信息上来看,什么有用的信息都没有。
报错退出之前mysql 要做的操作是" Logging to '/var/log/mariadb/mariadb.log". 看看日志吧。
结果发现没有这个日志