在 Ubuntu Server 16.04 上设置 MySQL Cluster 后出现的问题

在 Ubuntu Server 16.04 上设置 MySQL Cluster 后出现的问题

我对 Ubuntu 还不熟悉,但我想设置一个 SQL 集群。我完全按照本指南操作: https://www.digitalocean.com/community/tutorials/how-to-create-a-multi-node-mysql-cluster-on-ubuntu-16-04 唯一不同的是,我下载的是“mysql-cluster-gpl-7.4.19-debian9-x86_64.deb”,而不是 7.4.11

我到了这一步:

“使用以下命令启用启动脚本并将其添加到默认运行级别:

sudo systemctl 启用 mysqld.service”

但后来我收到了这个错误信息

Nov 19 18:42:22 MySQL-Server-01 mysqld[25546]: Starting MySQL Nov 19 18:42:22 MySQL-Server-01 mysqld[25546]: .Logging to '/opt/mysql/server-5.6/data/MySQL-Server-01.err'. Nov 19 18:42:23 MySQL-Server-01 mysqld[25546]:  * The server quit without updating PID file (/opt/mysql/server-5.6/data/MySQL-Server-01.pid). Nov 19 18:42:23 MySQL-Server-01 systemd[1]: mysqld.service: Control process exited, code=exited status=1 Nov 19 18:42:23 MySQL-Server-01 systemd[1]: Failed to start LSB: start and stop MySQL.
-- Subject: Unit mysqld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysqld.service has failed.
--
-- The result is failed. Nov 19 18:42:23 MySQL-Server-01 systemd[1]: mysqld.service: Unit entered failed state. Nov 19 18:42:23 MySQL-Server-01 systemd[1]: mysqld.service: Failed with result 'exit-code'

看完指南中的评论后,似乎有更多人遇到了这个问题。您知道是什么原因导致的吗?指南已经过时了吗?

相关内容