Skip to content

Commit 9315bf7

Browse files
author
baruch assif
committed
fix license * fix README for mysql-cdc
1 parent 15692d2 commit 9315bf7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

LICENSE

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
SPDX-License-Identifier: MIT-0
2+
33
Permission is hereby granted, free of charge, to any person obtaining a copy of
44
this software and associated documentation files (the "Software"), to deal in
55
the Software without restriction, including without limitation the rights to
@@ -11,5 +11,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1111
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1212
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1313
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
14-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15-
14+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mysql-cdc/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Amazon Web Services, Inc. or Amazon Web Services EMEA SARL or both.
1616
pip3 install -r requirements.txt
1717
```
1818
### Creating replication user for dcd
19-
```
19+
```sql
2020
CREATE USER 'repl'@'%' IDENTIFIED BY 'slavepass';
2121
GRANT REPLICATION SLAVE,REPLICATION CLIENT ON *.* TO 'repl'@'%';
22-
GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON *.* TO 'repl'@'%'
22+
GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON *.* TO 'repl'@'%';
2323
```
2424

2525
### MySQL config
@@ -37,13 +37,16 @@ binlog-format = row #Very important if you want to receive write, update and
3737

3838
## Test the replication
3939

40-
```
40+
```sql
41+
CREATE DATABASE test;
4142
use test;
43+
CREATE TABLE IF NOT EXISTS test5 (id int NOT NULL AUTO_INCREMENT, data VARCHAR(255), data2 VARCHAR(255), PRIMARY KEY(id));
4244
XA START 'xatest';
4345
INSERT INTO test5 (data,data2) VALUES ("Hello", "World");
4446
XA END 'xatest';
4547
XA PREPARE 'xatest';
4648
XA COMMIT 'xatest';
49+
-- drop table test5;
4750
```
4851

4952

0 commit comments

Comments
 (0)