Open facundo-guerrero-olx opened 7 years ago
Hi,
I'm having a problem with one database that the events INSERT/DELETE/UPDATE are only working with 3 tables and the rest not.
I'm seeing this events as QueryEvents and not WriteEvents
mysql> select @@version; +------------+ | @@version | +------------+ | 5.7.16-log | +------------+
mysql> SHOW VARIABLES where Variable_name in ('log_bin', 'binlog_format', 'binlog_row_image') ; +------------------+-------+ | Variable_name | Value | +------------------+-------+ | binlog_format | ROW | | binlog_row_image | FULL | | log_bin | ON | +------------------+-------+
=== QueryEvent === Date: 2017-08-07T09:10:34 Log position: 2422824 Event size: 52 Read bytes: 52 Schema: db1 Execution time: 0 Query: BEGIN () === QueryEvent === Date: 2017-08-07T09:10:34 Log position: 2423150 Event size: 303 Read bytes: 303 Schema: db1 Execution time: 0 Query: UPDATE `table` SET `field1` = NULL, `field1` = '77788', `phpsessid` = 'm5b', `device_type` = 'android', `device` = 'XX-123' WHERE table.id = 123456 () === XidEvent === Date: 2017-08-07T09:10:34 Log position: 2423181 Event size: 8 Read bytes: 8 Transaction ID: 79354691 () === QueryEvent === Date: 2017-08-07T09:10:34 Log position: 2423309 Event size: 40 Read bytes: 40 Schema: Execution time: 0 Query: BEGIN () observed_users === TableMapEvent === Date: 2017-08-07T09:10:34 Log position: 2423372 Event size: 40 Read bytes: 39 Table id: 130 Schema: db2 Table: table2 Columns: 5 () observed_users === WriteRowsEvent === Date: 2017-08-07T09:10:34 Log position: 2423426 Event size: 31 Read bytes: 12 Table: db2.table2 Affected columns: 5 Changed rows: 1 Values: -- ('*', u'notification_level', ':', 251231231235) ('*', u'target_id', ':', 123123123) ('*', u'id', ':', 123123123123) ('*', u'observed_date', ':', datetime.datetime(2017, 8, 7, 9, 10, 34)) ('*', u'origin_id', ':', 123123123) ()
It might depends on the actual engine of the table. Could you please provide a DESCRIBE table here?
DESCRIBE table
Hi, I'm continuing with this issue. Here is the output of 'show status
(reformated your comment for readability)
@baloo Do you have a clue why this it's happening? I'm not sure if there is some config missing in the database.
not much. I would investigate with mysqlbinlog first see if it's related to python-mysql-replication or a configuration error on mysql master.
Maybe an binlog-db-ignore or something. Could you please paste the output of show master status?
show master status
If in the mysql is enabled binlog_rows_query_log_events then the library don't read the events properly.
binlog_rows_query_log_events
@facundo-guerrero-olx put this in your my.cnf
binlog-format = ROW
@Felixls It's in row already.
Hi,
I'm having a problem with one database that the events INSERT/DELETE/UPDATE are only working with 3 tables and the rest not.
I'm seeing this events as QueryEvents and not WriteEvents