摘要

今天测试shell脚本自动配置MySQL主从集群的时候发现从机一直1593错误,排查了半天发现是从的配置文件中的server-id没改导致,此低级错误记录下警醒自己。

今天测试shell脚本自动配置MySQL主从集群的时候发现从机一直1593错误,排查了半天发现是从的配置文件中的server-id没改导致,此低级错误记录下警醒自己。

[root@DS-CentOS70 ~]# mysql -uroot -pYWFlMDAyZmFjOWJi

Warning: Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.6.28-log Source distribution

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW SLAVE STATUS\G

*************************** 1. row ***************************

Slave_IO_State:

Master_Host: 172.16.0.51

Master_User: replication

Master_Port: 3306

Connect_Retry: 60

Master_Log_File: mysql-bin.000003

Read_Master_Log_Pos: 120

Relay_Log_File: mysql-relay-bin.000002

Relay_Log_Pos: 4

Relay_Master_Log_File: mysql-bin.000003

Slave_IO_Running: No

Slave_SQL_Running: Yes

Replicate_Do_DB:

Replicate_Ignore_DB:

Replicate_Do_Table:

Replicate_Ignore_Table:

Replicate_Wild_Do_Table:

Replicate_Wild_Ignore_Table:

Last_Errno: 0

Last_Error:

Skip_Counter: 0

Exec_Master_Log_Pos: 120

Relay_Log_Space: 120

Until_Condition: None

Until_Log_File:

Until_Log_Pos: 0

Master_SSL_Allowed: No

Master_SSL_CA_File:

Master_SSL_CA_Path:

Master_SSL_Cert:

Master_SSL_Cipher:

Master_SSL_Key:

Seconds_Behind_Master: NULL

Master_SSL_Verify_Server_Cert: No

Last_IO_Errno: 1593

Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it).

Last_SQL_Errno: 0

Last_SQL_Error:

Replicate_Ignore_Server_Ids:

Master_Server_Id: 1

Master_UUID:

Master_Info_File: /data/mysql/master.info

SQL_Delay: 0

SQL_Remaining_Delay: NULL

Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it

Master_Retry_Count: 86400

Master_Bind:

Last_IO_Error_Timestamp: 160108 00:46:38

Last_SQL_Error_Timestamp:

Master_SSL_Crl:

Master_SSL_Crlpath:

Retrieved_Gtid_Set:

Executed_Gtid_Set:

Auto_Position: 0

1 row in set (0.00 sec)

mysql 1593_Linux高可用(HA)之MySQL主从复制中出现1593错误码的低级错误相关推荐

  1. mysql 1593_Linux中MySQL主从复制中出现1593错误码的低级错误

    主从复制小编介绍过不少的文章了,但在使用过程中经常会有一些问题出现了,今天我们来看关于Linux中MySQL主从复制中出现1593错误码的低级错误问题解决办法. 今天测试shell脚本自动配置MySQ ...

  2. mysql datahost ha_mysql MySQL数据库高可用HA实现

    起因:在工作中常常要用到mysql,平常只是对数据库crud,并没有认真的了解过她,sql语句也只是会一些最基本的,和常用的,一些不常用的都要去网上百度,即决定学习一下mysql,来了解她,虽然开发很 ...

  3. MySQL数据库高可用HA实现

    1. 什么是数据库高可用 1.1 什么是高可用集群 N+1:N就是集群,1就是高可用,高可用的核心就是冗余,集群是保证服务最低使用标准的 1.2. 高可用集群的衡量标准 一般是通过系统的可靠性和可维护 ...

  4. Mysql HA实现MYSQL的高可用

     Mysql HA实现MYSQL的高可用 http://colderboy.blog.51cto.com/485582/104872

  5. Spring - MySql实现高可用架构之MHA

    一.简介 MHA(Master HA)是一款开源的 MySQL 的高可用程序,它为 MySQL 主从复制架构提供了 automating master failover 功能.MHA 在监控到 mas ...

  6. mysql keepalived_mysql高可用+keepalived

    生产环境中一台mysql主机存在单点故障,所以我们要确保mysql的高可用性,即俩台mysql服务器如果其中有一台mysql服务器挂掉后,另外一台就能立刻接替进行工作. MYSQL的高可用方案一般有 ...

  7. Mysql的高可用方案及主从详细配置

    1.常用的高可用MySQL解决方案: 数据库作为最基础的数据存储服务之一,在存储系统中有着非常重要的地位,因此要求其具备高可用性无可厚非.能实现不同SLA(服务水平协定)的解决方案有很多种,这些方案可 ...

  8. heartbeat V2实现MySQL+NFS高可用

    heartbeatV2实现MySQL+NFS高可用  实验前准备 1.时间需要同步,建议使用NTP服务器同步时间并且创建时间同步计划 #ntpdate 172.16.0.1 //第一个节点#ntpda ...

  9. MySQL数据库高可用之mmm

    一:MMM简介 MMM即Multi-Master Replication Manager for MySQL:mysql多主复制管理器,基于perl实现,关于mysql主主复制 配置的监控.故障转移和 ...

最新文章

  1. linux 中的if else语句
  2. 用eclips连hadoop报Unknown protocol to job tracker: org.apache.hadoop.hdfs.protocol.ClientProtoco
  3. 剧本翻译之SHUFFLE 6月24日
  4. 【转】QT中添加的资源文件qrc时的路径问题小结
  5. 一个我们熟悉的陌生人:多丽丝·莱辛
  6. 链接克隆 完整克隆_深入克隆
  7. gcc -D选项的作用
  8. 线下商店销量预测挑战赛
  9. 【Shiro第七篇】SpringBoot + Shiro实现会话管理
  10. 如何在python中实现capl语言里的回调函数
  11. webservice axis2+spring整合
  12. 脉冲神经网络(Spiking Neural Network,SNN)概述
  13. 如何打开计算机任务管理器,电脑任务管理器怎么打开
  14. 国产数据库产品介绍以及实践
  15. js中some和every用法
  16. html初识教学反思,英语课后反思,英语教学反思20篇简短!
  17. 找到解决Foobar乱码的方法了
  18. 转:AKF 扩展立方体
  19. CRM系统为企业带来的8个好处
  20. 外企是如何在家办公的?

热门文章

  1. 经常逛Github的人才知道的开源框架
  2. 如何优雅地打印一个Java对象?
  3. win11磁盘分区_win11系统磁盘如何分区
  4. xcode13 swift语言 ios开发 快捷代码优化方式(代码重构)例子
  5. 用python成为一名顶级黑客
  6. Win11硬盘怎么分区?Win11固态硬盘分区教程
  7. 第一次用VNPY,通过仿真测试,踩过千万坑,我太难了~~~~~~
  8. IC学习笔记3——异步FIFO
  9. 命令_查看占用端口 netstat -ano|findstr 8080
  10. 怎么录屏?5 款免费无水印的录屏神器