日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

PXC集群常见错误(一)

發(fā)布時(shí)間:2023/12/9 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PXC集群常见错误(一) 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

歡迎關(guān)注MySQL 8.0必知必會(huì)系列課程。

??? MySQL8.0必知必會(huì)-自動(dòng)化部署??????????? https://edu.51cto.com/course/16368.html
??? MySQL8.0必知必會(huì)之參數(shù)標(biāo)準(zhǔn)化配置??????? https://edu.51cto.com/course/16358.html



1.Can't start server: Bind on TCP/IP port: Address already in use

2017-12-07T10:25:56.216309+08:00 0 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use

2017-12-07T10:25:56.216324+08:00 0 [ERROR] Do you already have another mysqld server running on port: 22308 ?

2017-12-07T10:25:56.216340+08:00 0 [ERROR] Aborting

故障處理

主要是改參數(shù)設(shè)置有問(wèn)題,參數(shù)為

wsrep_node_address=192.168.192.65:22308

正確設(shè)置為:

wsrep_node_address=192.168.192.65


2.It may not be safe to bootstrap the cluster from this node

2017-12-15T13:11:30.237139+08:00 0 [ERROR] WSREP: It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates.

To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1 .

2017-12-15T13:11:30.237148+08:00 0 [ERROR] WSREP: Provider/Node (gcomm://10.66.192.65:4567,10.66.192.66:4567,10.66.192.67:4567) failed to establish connection with cluster (reason: 7)

2017-12-15T13:11:30.237158+08:00 0 [ERROR] Aborting

故障處理

集群本身無(wú)問(wèn)題,只是非正常關(guān)閉。

修改第一個(gè)啟動(dòng)節(jié)點(diǎn)的grastate.dat文件,將

# GALERA saved state

version: 2.1

uuid:????? 8ed447b7-dafa-11e7-8071-a6ba78498531

seqno:???? -1

safe_to_bootstrap:?? 0?? 改為 1

然后可以直接啟動(dòng)


3.Error in Log_event::read_log_event(): 'read error'

2017-12-15T15:16:35.195586+08:00 0 [ERROR] Error in Log_event::read_log_event(): 'read error', data_len: 11730978, event_type: 51

2017-12-15T15:16:35.195606+08:00 0 [Warning] Error reading GTIDs from binary log: -1

故障處理

binlog參數(shù)設(shè)置過(guò)長(zhǎng),導(dǎo)致無(wú)法正確生成binlog和正常的讀取

log-bin???????????????????????? =/data/mysql/db_test1/binlog/192.168.10.128_test1_bin

log-bin-index=/data/mysql/db_test1/binlog/192.168.10.128_test1_bin.index

-rw-r--r-- 1 mysql mysql 177 Dec 15 15:19 192.168.10

-rw-r--r-- 1 mysql mysql? 40 Dec 15 15:17 192.168.10.128_test1_bin.index

轉(zhuǎn)載于:https://blog.51cto.com/14136767/2334489

總結(jié)

以上是生活随笔為你收集整理的PXC集群常见错误(一)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。