初始化systemctl status mariadb.service

时间:2016-03-14 20:59:33

标签: linux mariadb

我正在尝试使用camando systemctl mariadb.service状态初始化mysql服务,但发生以下错误,已经卸载并安装了两次,但错误仍然存​​在。

systemctl status mariadb.service
● mariadb.service - MariaDB 10.0 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Seg 2016-03-14 17:51:49 BRT; 15s ago
  Process: 6303 ExecStopPost=/usr/libexec/mysql-wait-stop (code=exited, status=0/SUCCESS)
  Process: 6074 ExecStartPost=/usr/libexec/mysql-wait-ready $MAINPID (code=exited, status=1/FAILURE)


  Process: 6073 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
  Process: 6020 ExecStartPre=/usr/libexec/mysql-prepare-db-dir %n (code=exited, status=0/SUCCESS)
  Process: 5987 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
 Main PID: 6073 (code=exited, status=0/SUCCESS)

Mar 14 17:51:45 siad01-pc systemd[1]: Starting MariaDB 10.0 database server...
Mar 14 17:51:46 siad01-pc mysqld_safe[6073]: 160314 17:51:46 mysqld_safe Log....
Mar 14 17:51:47 siad01-pc mysqld_safe[6073]: 160314 17:51:47 mysqld_safe Sta...l
Mar 14 17:51:48 siad01-pc mysqld_safe[6073]: 160314 17:51:48 mysqld_safe mys...d
Mar 14 17:51:48 siad01-pc systemd[1]: mariadb.service: control process exit...=1
Mar 14 17:51:49 siad01-pc systemd[1]: Failed to start MariaDB 10.0 database...r.
Mar 14 17:51:49 siad01-pc systemd[1]: Unit mariadb.service entered failed state.
Mar 14 17:51:49 siad01-pc systemd[1]: mariadb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@siad01-pc ~]# 

1 个答案:

答案 0 :(得分:0)

好的,我解决了这个问题。 我不得不删除mysql,mariadb

yum删除mysql

然后我删除了/ var / lib / mysql,然后重新安装了mariadb,mariadb-server,mysql和mysql-server。

然后我重新安装了mariadb

就这么简单