master and slave have equal MySQL server UUIDs問題解決
在搭建Mysql主從複製時候,在執行完相關操作以後,通過命令檢視是否主從複製成功的時候
show slave status\G;
在“Slave_SQL_Running_State”中出現了“Fatal error: The slave I/O thread stopsbecause master and slave have equal MySQL server UUIDs; these UUIDs must bedifferent for replication to work.”這個錯誤。
當時以為是主節點伺服器的UUID和從節點伺服器網路卡的UUID重複了,經過檢視,發現他們並沒有重複,然後重啟伺服器以後發現仍然沒有成功。有點摸不著頭腦,所以通過上網搜尋。
發現原來是Mysql的一個配置檔案auto.cnf裡面記錄了mysql伺服器的uuid。
server_uuid:伺服器身份ID。在第一次啟動Mysql時,會自動生成一個server_uuid並寫入到資料目錄下auto.cnf檔案裡。
原來是這個uuid和主伺服器的uuid重複了。(從節點伺服器上的mysql安裝包是直接從主節點伺服器裡面拷過來的),然後經過修改auto.cnf檔案中的server-uuid,重啟mysql伺服器,再檢視mysql從節點的狀態,終於成功了。
相關文章
- MySQL master and slave have equal MySQL server UUIDsMySqlASTServerUI
- 5.6.25 MySql主從 Tmaster and slave have equal MySQL srver UUIDs;MySqlASTUI
- The slave I/O thread stops because master and slave have equal MySQL server UUIDthreadASTMySqlServerUI
- 故障案例:主從同步報錯Fatal error: The slave I/O thread stops because master and slave have equal MySQL server主從同步ErrorthreadASTMySqlServer
- MySQL Master/Slave Master/MasterMySqlAST
- MySQL master/slaveMySqlAST
- mysql master-slave複製錯誤[解決事例]MySqlAST
- MySql的Master/SlaveMySqlAST
- mysql master和slave配置MySqlAST
- mysql slave 轉為 masterMySqlAST
- MySQL 5.5 Master/Slave 配置MySqlAST
- mysql master slave 主從同步MySqlAST主從同步
- mysql 同步 master-slave薦MySqlAST
- Mysql Slave群切換MasterMySqlAST
- Mysql Slave群切換Master (=)MySqlAST
- MySQL報錯Slave: received end packet from server, apparent master shutdownMySqlServerAPPAST
- 上手MySQL之解決問題:not allowed to connect to this MySQL serverMySqlServer
- MySQL錯誤之mysql.slave_master_infoMySqlAST
- mysql建立master/slave詳細步驟MySqlAST
- 利用mysql slave 修復master MyISAM tableMySqlAST
- MySQL server has gone away 問題的解決方法MySqlServerGo
- Redis master and slaveRedisAST
- Mysql mysql lost connection to server during query 問題解決方法MySqlServer
- Mysql 5.6 Master和Slave 主備切換MySqlAST
- MYSQL的master/slave資料同步配置(轉)MySqlAST
- Slave: received 0 length packet from server, apparent master shutdownServerAPPAST
- You do not have permission to get URL ‘/’ from this server解決方案Server
- Mysql Master-slave複製簡單配置記錄MySqlAST
- MYSQL5的master slave資料同步配置(轉)MySqlAST
- MySQL 中文 like 問題解決MySql
- mysql大小寫問題解決MySql
- Redis核心解讀-從Master到Slave的ReplicantionRedisAST
- mysql_slave :Error_code: 1593解決MySqlError
- mysql slave 跟進 master 的關鍵狀態指標MySqlAST指標
- Mysqldump實現mysql的master-slave主從複製MySqlAST
- MySQL 5.5.x 配置Master-Slave主從複製MySqlAST
- Mongodb的master-slave模式與master-master模式實驗MongoDBAST模式
- centos7 下解決mysql-server找不到安裝包問題CentOSMySqlServer