Comments (13)
Anyway, thanks again.
from mysqlcdc.
Hello James,
I assume you configured a new replica server(since there is a gap in GTIDs, 1-4050).
Could you please check gtid_executed
and gtid_purged
select @@gtid_executed;
select @@gtid_purged;
If you configured your replica correctly the gtid_purged
must be “1d8dab31-b1c3-11e9-bd4f-00155d452816:1-4050”
Have you also tried FromGtid(“1d8dab31-b1c3-11e9-bd4f-00155d452816:4051-4051”)
?
from mysqlcdc.
Thank you for comment.
mysql> select @@gtid_executed;
+---------------------------------------------+
| @@gtid_executed |
+---------------------------------------------+
| 1d8dab31-b1c3-11e9-bd4f-00155d452816:1-4097 |
+---------------------------------------------+
1 row in set (0.04 sec)
mysql> select @@gtid_purged;
+---------------------------------------------+
| @@gtid_purged |
+---------------------------------------------+
| 1d8dab31-b1c3-11e9-bd4f-00155d452816:1-4050 |
+---------------------------------------------+
1 row in set (0.01 sec)
from mysqlcdc.
Ok, could you then try
- FromGtid(“1d8dab31-b1c3-11e9-bd4f-00155d452816:4051-4051”)
- FromGtid(“1d8dab31-b1c3-11e9-bd4f-00155d452816:4051-4096”)
from mysqlcdc.
I tried them but got the same error.😂
from mysqlcdc.
Ok, silly question, did you change the connection string(hostname) to your new replica?
from mysqlcdc.
No,I am using localhost
to connect the MySQL on my dev PC.
from mysqlcdc.
Did you make a backup of your database and restore it on a new replica or you are just using the master server.
I just want to understand how your events got purged(because of expiration or because you configured a new replica)
from mysqlcdc.
Just using the master server.
I used to manually delete the binlog file when I needed to change the configuration. I don't know if that's the reason.
from mysqlcdc.
maybe something got corrupt(it's better you use PURGE BINARY LOGS in such cases)
you can try to reset GTID history and clear binlog but make sure you understand the reset master command
from mysqlcdc.
It work! So Amazing! Thanks a lot 🎁
There's a lot I don't know about binlog but I learned a lot from you.
from mysqlcdc.
AH, I JUST REALIZED what the problem was.
The correct answer was
FromGtid(“1d8dab31-b1c3-11e9-bd4f-00155d452816:1-4050”)`
In the FromGtid
method you must pass your current state(your gtid_executed state).
This way you tell the server that you already executed transactions from 1 to 4050 so it will send you remaining interval from 4051 to 4097
You should have passed the @@gtid_purged value to the FromGtid
which is equal to FromStart()
FromGtid(@@gtid_purged) => FromStart()
FromGtid(@@gtid_executed) => FromEnd()
from mysqlcdc.
Exactly, it works finally.
from mysqlcdc.
Related Issues (20)
- support for binlog-do-db/binlog-ignore-db HOT 6
- How to get the cells column name? HOT 8
- hope to support semi-sync-replication HOT 4
- MaxScale BinLog Server compatibility like maxwell discussion HOT 1
- Empty VARCHAR data column value and JSON data column inner string field value is parsed as null out of MySQL binlog. HOT 12
- Implement v2.0
- no UpdateRowsEvent\DeleteRowsEvent only QueryEvent HOT 2
- Is it possible to get the logs for a specific table? HOT 7
- [Question] TableMapEvent.TableMetaData.ColumnNames returns null HOT 7
- update row event,but ColumnsPresentBeforeUpdate and ColumnsPresentAfterUpdate is same ? HOT 2
- Could not receive a master heartbeat within the specified interval HOT 3
- binlog_row_metadata existence HOT 1
- Add support for USER_VAR_EVENT
- TableMetadata.ColumnNames is null HOT 2
- can't find TableId from INFORMATION_SCHEMA.TABLES. HOT 2
- Support Event To Detect Column Changes For Mysql:5.7 HOT 7
- Parsing opaque values in JSON
- Implement SSL strategies HOT 3
- use Production Environment HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysqlcdc.