-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing events from new databases (MySQL 8) #405
Comments
@raven-kg 1. The exact minor version of MySQL with which you are encountering this problem.
2. The Data Definition Language (DDL) script that you used for the creation of the problematic database.
3. The type of storage engine being used for the database in question. In the meantime, I suggest adjusting your system variables as follows and testing once again: enforce_gtid_consistency = ON
gtid_mode = ON This information and action should facilitate a more comprehensive and precise diagnosis of the issue by the maintainers. |
And we were able to solve this issue by adding autocommit=True to connection_settings. i think this behavior should probably be documented somehow. |
@raven-kg However, as it stands, the information supplied doesn't provide a full picture for us to adequately address the issue. To reach a conclusive solution and update the documentation or code accordingly, we need a more detailed scenario to reproduce the problem. Could you please furnish us with the following additional information: 1. The options you utilized with the mysqldump command.
2. The size of the dump file.
3. The session variable set on the session which loaded the dump file to MySQL. With this extra detail, we will be better equipped to find an appropriate solution. For now, we will keep this issue open for further analysis and discussion. |
|
Did you run |
The script utilizing python-mysql-replication runs as a daemon and is not being restarted every time a new database is created. It works with the newly created database after restart, but it is not possible to restart it every time a database is created because of the possibility of data loss (the script serves hundreds of databases). |
@raven-kg |
@raven-kg maybe this issue is same with your issue can u try like this and tell me know how it works? |
@sean-k1 it doesn't help in my case |
@raven-kg |
@raven-kg we release new version (0.44.0) |
@sean-k1 i tried to run on 0.42.0 with the changes backported from your commit |
@sean-k1 same with 0.44.0 |
you said solve this issue by adding autocommit=True to connection_settings. so i can not understand this one.. |
Hi there,
After upgrading my MySQL server from 5.7 to 8.0, I had a problem that events from newly created databases do not appear in the data read by the binlog reader. I used this simple code to test this and found that the data does not appear in the output if the database (table?) is created when this code is already running. And they does appear after if the code is restarted, but only the ones that occur after a restart.
MySQL server is AWS RDS instance, binlog/gtid settings are below:
mysql-replication is also upgraded to latest version
The text was updated successfully, but these errors were encountered: