啟動mysql集群報錯問題

2021-10-05 08:07:16 字數 1461 閱讀 8225

問題:

在node1、node2、node3這3個節點上部署了乙個mysql集群,因為突發事件3臺伺服器全掛。後來伺服器重啟後,啟動mysql服務。

操作:我對mysql集群基本上是個小白。所以上來就到3個node上分別執行systemctl restart mysqld命令,

但是報如下錯誤:

apr 21 14:52:53 controller1 mysqld[37593]: 2020-04-21 14:52:53 0 [note] wsrep: view((empty))

apr 21 14:52:53 controller1 mysqld[37593]: 2020-04-21 14:52:53 0 [error] wsrep: failed to open gcomm backend connection: 110: failed to reach primary view: 110 (connection timed out)

apr 21 14:52:53 controller1 mysqld[37593]: at gcomm/src/pc.cpp:connect():158

apr 21 14:52:53 controller1 mysqld[37593]: 2020-04-21 14:52:53 0 [error] wsrep: gcs/src/gcs_core.cpp:gcs_core_open():209: failed to open backend connection: -110 (connection timed out)

apr 21 14:52:53 controller1 mysqld[37593]: 2020-04-21 14:52:53 0 [error] wsrep: gcs/src/gcs.cpp:gcs_open():1458: failed to open channel 'my_wsrep_cluster' at 'gcomm:': -110 (con

apr 21 14:52:53 controller1 mysqld[37593]: 2020-04-21 14:52:53 0 [error] wsrep: gcs connect failed: connection timed out

apr 21 14:52:53 controller1 mysqld[37593]: 2020-04-21 14:52:53 0 [error] wsrep: wsrep::connect(gcomm:) failed: 7

apr 21 14:52:53 controller1 mysqld[37593]: 2020-04-21 14:52:53 0 [error] aborting

解決辦法:

在stack overflow上找到類似問題,按照操作,解決!

簡單來說就是:在node1上執行galera_new_cluster命令,啟動乙個新集群,然後到另外2個node上再分別執行systemctl restart mysqld命令就ok了。

上邊之所以報錯,是因為我啟動命令用錯了。

MYSQL 啟動報錯

我先說一下我安裝mysql的操作吧 1 開始的時候,安裝mysql,是那種解壓縮就能用的軟體包。我把它解壓後,拷貝到 usr local 目錄下,並把名字命名為mysql。2 建立使用者mysql。root localhost useradd mysql 3 修改許可權。root localhost...

關於Mysql啟動報錯問題,備忘

starting mysql.error the server quit without updating pid file data mysql mysql.master.com.pid 首先思路是檢視日誌檔案 開始是在 etc my.cnf定義 發現這樣一句話 etc mysql bin mys...

集群中 啟動rabbitmq 節點 報錯

error unable to perform an operation on node rabbit li 2 pc please see diagn ostics information and suggestions below.most common reasons for this are...