如何在nginx服务器上启动mariadb服务?

时间:2018-05-29 04:28:57

标签: mysql nginx ubuntu-16.04

我一直在尝试设置服务器,我在启动mariadb时遇到问题。它在控制台中出错。我按照一些教程和在互联网上搜索找到解决方案但我没有得到启动mariadb的解决方案。

mariadb.service - MariaDB database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled)
   Active: failed (Result: exit-code) since Mon 2014-06-02 22:48:58 BST; 33min ago
  Process: 10042 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
  Process: 10041 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
  Process: 10013 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
 Main PID: 10041 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/mariadb.service

Jun 02 22:48:56 ultrasonicfortress mysqld_safe[10041]: 140602 22:48:56 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jun 02 22:48:56 ultrasonicfortress mysqld_safe[10041]: 140602 22:48:56 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jun 02 22:48:58 ultrasonicfortress mysqld_safe[10041]: 140602 22:48:58 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Jun 02 22:48:58 ultrasonicfortress systemd[1]: mariadb.service: control process exited, code=exited status=1
Jun 02 22:48:58 ultrasonicfortress systemd[1]: Failed to start MariaDB database server.
Jun 02 22:48:58 ultrasonicfortress systemd[1]: Unit mariadb.service entered failed state.

0 个答案:

没有答案