Percona DB 无法启动:initscript mysql,操作“启动”失败

Percona DB 无法启动:initscript mysql,操作“启动”失败

安装 Percona 服务器后,我收到以下消息:

 * Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
 * Run the following commands to create these functions:

    mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
    mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
    mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"

 * See http://www.percona.com/doc/percona-server/5.6/management/udf_percona_toolkit.html for more details

Job for mysql.service failed. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package percona-server-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of percona-server-server:
 percona-server-server depends on percona-server-server-5.6; however:
  Package percona-server-server-5.6 is not configured yet.

dpkg: error processing package percona-server-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Errors were encountered while processing:
 percona-server-server-5.6
 percona-server-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@public-server-01:~/src# systemctl status mysql.service
● mysql.service - LSB: Start and stop the mysql (Percona Server) daemon
   Loaded: loaded (/etc/init.d/mysql)
   Active: failed (Result: exit-code) since Wed 2015-09-30 04:26:52 UTC; 38min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 20916 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)

Sep 30 04:26:41 public-server-01 systemd[1]: Starting LSB: Start and stop the mysql (Percona Server) daemon...
Sep 30 04:26:41 public-server-01 mysql[20916]: * Starting MySQL (Percona Server) database server mysqld
Sep 30 04:26:52 public-server-01 systemd[1]: mysql.service: control process exited, code=exited status=1
Sep 30 04:26:52 public-server-01 systemd[1]: Failed to start LSB: Start and stop the mysql (Percona Server) daemon.
Sep 30 04:26:52 public-server-01 systemd[1]: Unit mysql.service entered failed state.
Sep 30 04:26:52 public-server-01 mysql[20916]: ...fail!
Sep 30 04:26:52 public-server-01 systemd[1]: mysql.service failed.

我不明白为什么它无法启动。

我正在运行 Ubuntu 15。1GB 的 RAM......

答案1

错误消息“Package percona-server-server-5.6 is not configure yet.”表示软件包未安装。Percona 软件包需要按正确的顺序安装:
首先从通用库开始,然后是客户端,然后是服务器端。

当您使用 dpkg 安装时,您将看到 dpkg 报告的任何错误,这些错误必须先解决。有时,只需运行 apt-get -f install 即可通过安装所需的软件包来解决问题。

对于 Ubuntu 14.04:

dpkg-i percona-server-common-5.6_5.6.26-74.0-1.trusty_amd64.deb percona-server-client_5.6.26-74.0-1.trusty_amd64.deb percona-server-server-5.6_5.6.26-74.0-1.trusty_amd64.deb

一旦 dpkg 没有错误,您就可以开始了。

答案2

要强制安装包而不启动 MySQL 服务,请运行:

RUNLEVEL=1 apt install -y percona-xtradb-cluster-57

来源:安装软件包而不启动后台进程和服务

安装软件包后它将停止守护进程的启动。

目前还不清楚为什么你的Percona 服务器无法启动 MySQL 服务器,要检查详细信息,请运行:

journalctl -xe

或者检查 MySQL 日志:

tail -n50 /var/log/mysqld.log

最常见的问题是安装/启动Percona 服务器由于集群配置尚未完成,因此服务无法连接到现有集群。

如果是,请检查 中的配置文件/etc/mysql/percona-xtradb-cluster.conf.d/,尤其wsrep_cluster_addresswsrep.cnf。在首次启动服务之前,请先尝试取消注释。

也可以看看:在 Ubuntu 上无人值守安装 Percona/MySQL

对于文档页面,请检查:Percona XtraDB Cluster 5.7 文档

相关内容