主从不同步故障案例一
故障原因:开发人员在主库上修改了一张表的结构,加了一个字段,从库由于各种原因没有同步过去,导致主从同步失败。故障处理:1、查看在从库上查看同步状态:mys
故障原因:
开发人员在主库上修改了一张表的结构,加了一个字段,,从库由于各种原因没有同步过去,导致主从同步失败。
故障处理:
1、查看在从库上查看同步状态:
2、从上面可以看出表act_id的js_code字段在从库上没有,可以对比一下主库和从库这张表的结构:
查看主库:
查看从库:
mysql> desc act_id; +-----------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------------+------------------+------+-----+---------+----------------+ | act_id | int(10) unsigned | NO | PRI | NULL | auto_increment | | name | varchar(512) | NO | | NULL | | | fields | varchar(512) | NO | | NULL | | | remark | varchar(512) | NO | | NULL | | | create_user | varchar(256) | NO | | NULL | | | duty_user_name | varchar(256) | NO | | NULL | | | duty_user_email | varchar(256) | YES | | NULL | | | duty_user_phone | varchar(256) | YES | | NULL | | | create_time | bigint(20) | NO | | NULL | | | update_time | bigint(20) | NO | | NULL | | +-----------------+------------------+------+-----+---------+----------------+ 10 rows in set (0.00 sec)3、在正式处理故障之前要停掉主库和从库的slave进程(我的环境是做了双向同步,即主主同步)
mysql> slave stop; Query OK, 0 rows affected (0.12 sec)4、在从库上加缺少的字段:
alter table act_id add js_code text not Null AFTER fields;5、启动从库的slave进程,查看主从状态:
mysql> slave start; Query OK, 0 rows affected (0.00 sec) mysql> show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 10.10.100.100 Master_User: slave Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000009 Read_Master_Log_Pos: 917648 Relay_Log_File: mysqld-relay-bin.000117 Relay_Log_Pos: 253 Relay_Master_Log_File: mysql-bin.000009 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: mysql,information_schema,performance_schema,test,mysql,information_schema,performance_schema,test 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: 917648 Relay_Log_Space: 556 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: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 1 row in set (0.00 sec)
Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

<p>MSTeams is the trusted platform to communicate, chat or call with teammates and colleagues. Error code 80090016 on MSTeams and the message <strong>Your computer's Trusted Platform Module has failed</strong> may cause difficulty logging in. The app will not allow you to log in until the error code is resolved. If you encounter such messages while opening MS Teams or any other Microsoft application, then this article can guide you to resolve the issue. </p><h2&

What should I do if my Black Shark phone cannot be turned on? Teach you how to save yourself! In our daily lives, mobile phones have become an indispensable part of us. For many people, the Black Shark mobile phone is a beloved gaming phone. But it is inevitable that you will encounter various problems, one of which is that the phone cannot be turned on. When you encounter such a situation, don't panic. Here are some solutions that I hope will help you. First of all, when the Black Shark phone cannot be turned on, first check whether the phone has enough power. It may be that the phone cannot be turned on due to exhausted battery.

What is 0x0000004e failure? Failure is a common problem in computer systems. When a computer encounters a fault, the system usually shuts down, crashes, or displays error messages because it cannot run properly. In Windows systems, there is a specific fault code 0x0000004e, which is a blue screen error code indicating that the system has encountered a serious error. The 0x0000004e blue screen error is caused by system kernel or driver issues. This error usually causes the computer system to

Users who shared printers found that their win10 computers could not connect to the shared printers after upgrading the September 2021 patch. So what should they do if they encounter the win10 shared printer 0x0000011b failure? This problem is encountered by many users. , the following will give you the specific content of the win10 shared printer 0x0000011b fault solution. The method is very simple, and customers can learn it at a glance. What to do if win10 shared printer 0x0000011b fails 1. Open the control panel, enter the program and functions, and check the installed upgrade; 2. Uninstall the following patches: KB5005569/KB5005573/KB5005568/KB

What to do about 0x00000001 blue screen? The blue screen problem is a headache that many computer users often encounter. When our computer encounters a blue screen, it will suddenly stop running and display a blue screen interface with an error code. Among them, 0x00000001 is a common blue screen error code. Blue screen issues can be caused by a variety of reasons, including software errors, hardware failures, driver issues, and more. Although this problem can be frustrating, there are things we can do to resolve it. Below I will introduce some solutions to blue screen

Many friends have just bought a new graphics card. Just a few days after installing it, the fan suddenly stopped spinning. What is the reason? Is this normal? This must be a problem. You can check the graphics card in the chassis. , the memory and hard disk cables are connected and there is no power supply. Is it normal? Is there any voltage instability? Let’s take a look at the specific reasons with the editor. Answers to the reasons why the graphics card fan does not rotate: 1. Insufficient power supply causes the fan to not rotate. One of the most common reasons is that when the energy provided by your power supply cannot meet the requirements of the graphics card, in order to maintain the normal operation of the computer program, most graphics cards will stop their cooling fans to ensure that the GPU core can Continue to perform calculations. When encountering this situation, don’t blame the graphics card for not being powerful! It's obviously very considerate, okay?

Black Shark is a smartphone brand known for its powerful performance and excellent gaming experience. It is loved by gamers and technology enthusiasts. However, just like other smartphones, Black Shark phones will have various problems, among which charging failure is a common one. Charging failure will not only affect the normal use of the mobile phone, but may also cause more serious problems, so it is very important to solve the charging problem in time. This article will start with the common causes of Black Shark mobile phone charging failures and introduce methods to troubleshoot and solve charging problems. I hope it can help readers solve the problem of Black Shark mobile phones.
![Mouse jumps when plugged into charger [Fixed]](https://img.php.cn/upload/article/000/887/227/170835319235361.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
If you notice that your mouse cursor is jumping when you plug it into the charger, this article may help you. There have been reports that the mouse cursor may behave erratically, jumping, selecting, and accidentally clicking when connecting the charger to the laptop. Power issues are usually one of the most common reasons for this. Why is my mouse having trouble charging? Laptop mouse failure may be caused by multiple reasons, such as battery, charger, charger brick, etc. failures. In addition, wiring problems with wall sockets are also common causes. Mouse jumps when plugged into charger If your mouse jumps when plugged into charger, use the following suggestions. Perform a hard reset, try another charger, run a battery test, update or reinstall the required drivers for the charger
