https://github.com/dionisvl/my.debezium.example
Real-time replication between MySQL and PostgreSQL, Debezium working example
https://github.com/dionisvl/my.debezium.example
debezium
Last synced: 15 days ago
JSON representation
Real-time replication between MySQL and PostgreSQL, Debezium working example
- Host: GitHub
- URL: https://github.com/dionisvl/my.debezium.example
- Owner: dionisvl
- Created: 2023-10-02T07:45:40.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T07:47:00.000Z (about 2 years ago)
- Last Synced: 2025-03-26T18:19:51.875Z (7 months ago)
- Topics: debezium
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Debezium example
### MySQL to PG sequence example- create test db and test table `users` with primary key in MySQL
- create test db in PG
- create connectors
- make some rows in Master test table
- Profit## Creating connectors
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @source.json
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @sink.json## Debezium connector manager http://localhost:8080/
If you have any problem, then delete connector in install it again:
- curl -i -X DELETE localhost:8083/connectors/p-s-connector
- curl -i -X DELETE localhost:8083/connectors/m-s-connector## Mysql Master test table
```
CREATE TABLE `test`.`users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT 'vasya',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
```#### Source list:
- https://programmerall.com/article/19392347675/