无法启动mariadb 10.2.16数据库服务器

sg3maiej  于 2021-06-20  发布在  Mysql
关注(0)|答案(0)|浏览(315)

当我进入 systemctl status mariadb.service 输出为:

mariadb.service - MariaDB 10.2.16 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─migrated-from-my.cnf-settings.conf
   Active: failed (Result: exit-code) since Tue 2018-07-17 13:53:46 +06; 24s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 7342 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
  Process: 7058 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && system
  Process: 7054 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 7052 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
 Main PID: 7342 (code=exited, status=1/FAILURE)
   Status: "MariaDB server is down"

Jul 17 13:53:43 munim-Inspiron-5548 systemd[1]: Starting MariaDB 10.2.16 database server...
Jul 17 13:53:43 munim-Inspiron-5548 mysqld[7342]: 2018-07-17 13:53:43 139955312822464 [Note] /usr/sbin/mysqld (mysqld 10.2.16-MariaDB-10.2.16+m
Jul 17 13:53:46 munim-Inspiron-5548 systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Jul 17 13:53:46 munim-Inspiron-5548 systemd[1]: Failed to start MariaDB 10.2.16 database server.
Jul 17 13:53:46 munim-Inspiron-5548 systemd[1]: mariadb.service: Unit entered failed state.
Jul 17 13:53:46 munim-Inspiron-5548 systemd[1]: mariadb.service: Failed with result 'exit-code'.

我已尝试登录 mysql -u root -p 它显示了

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

有人能给我一些建议吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题