我安装并尝试在Debian上配置MySQL Server。重新启动服务后,它崩溃了,无法再次启动。
以下是“服务状态”输出:
entity
---编辑部分:---
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-06-01 19:23:14 CEST; 3min 18s ago
Process: 11112 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
Process: 11077 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 2845 (code=exited, status=0/SUCCESS)
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: mysql.service: Unit entered failed state.
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: mysql.service: Failed with result 'exit-code'.
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: Stopped MySQL Community Server.
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: mysql.service: Start request repeated too quickly.
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: Failed to start MySQL Community Server.
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: mysql.service: Unit entered failed state.
Jun 01 19:23:14 h2836596.stratoserver.net systemd[1]: mysql.service: Failed with result 'exit-code'.
的输出:
dpkg -l | grep mysql
ii mysql-client 5.7.26-1debian9 amd64 MySQL Client meta package depending on latest version
ii mysql-common 5.8+1.0.2 all MySQL database common files, e.g. /etc/mysql/my.cnf
ii mysql-community-client 5.7.26-1debian9 amd64 MySQL Client
ii mysql-community-server 5.7.26-1debian9 amd64 MySQL Server
ii mysql-server 5.7.26-1debian9 amd64 MySQL Server meta package depending on latest version
rc php7.0-mysql 7.0.33-0+deb9u3 amd64 MySQL module for PHP
的输出:
service mysql start
答案 0 :(得分:1)
请以超级用户身份运行此文件
/usr/sbin/mysqld
开始吗?如果不是-它说什么?