Skip to content

Commit cc605d9

Browse files
authored
chore: text translator (#1610)
* fix: Change translator modal * chore: test translator
1 parent 416fcbf commit cc605d9

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

docs/en/tutorials/migrate/migrating-from-mysql-with-addax.md

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ databend> create database migrated_db;
2121
databend> create table migrated_db.tb01(id int null, col1 String null);
2222
```
2323

24-
3. Copy and paste the following code to a file, and name the file as *mysql_demo.json*:
24+
3. Copy and paste the following code to a file, and name the file as _mysql_demo.json_:
2525

2626
:::note
2727
For the available parameters and their descriptions, refer to the documentation provided at the following link: https://wgzhao.github.io/Addax/develop/writer/databendwriter/#_2
@@ -39,17 +39,14 @@ For the available parameters and their descriptions, refer to the documentation
3939
"writer": {
4040
"name": "databendwriter",
4141
"parameter": {
42-
"preSql": [
43-
"truncate table @table"
44-
],
45-
"postSql": [
46-
],
42+
"preSql": ["truncate table @table"],
43+
"postSql": [],
4744
"username": "u1",
4845
"password": "123",
4946
"database": "migrate_db",
5047
"table": "tb01",
5148
"jdbcUrl": "jdbc:mysql://127.0.0.1:3307/migrated_db",
52-
"loadUrl": ["127.0.0.1:8000","127.0.0.1:8000"],
49+
"loadUrl": ["127.0.0.1:8000", "127.0.0.1:8000"],
5350
"fieldDelimiter": "\\x01",
5451
"lineDelimiter": "\\x02",
5552
"column": ["*"],
@@ -61,18 +58,12 @@ For the available parameters and their descriptions, refer to the documentation
6158
"parameter": {
6259
"username": "mysqlu1",
6360
"password": "123",
64-
"column": [
65-
"*"
66-
],
61+
"column": ["*"],
6762
"connection": [
6863
{
69-
"jdbcUrl": [
70-
"jdbc:mysql://127.0.0.1:3306/db"
71-
],
64+
"jdbcUrl": ["jdbc:mysql://127.0.0.1:3306/db"],
7265
"driver": "com.mysql.jdbc.Driver",
73-
"table": [
74-
"tb01"
75-
]
66+
"table": ["tb01"]
7667
}
7768
]
7869
}
@@ -86,10 +77,10 @@ For the available parameters and their descriptions, refer to the documentation
8677

8778
```shell
8879
cd {YOUR_ADDAX_DIR_BIN}
89-
./addax.sh -L debug ./mysql_demo.json
80+
./addax.sh -L debug ./mysql_demo.json
9081
```
9182

92-
You're all set! To verify the data loading, execute the query in Databend:
83+
You are all set! To verify the data loading, execute the query in Databend:
9384

9485
```sql
9586
databend> select * from migrated_db.tb01;
@@ -100,4 +91,4 @@ databend> select * from migrated_db.tb01;
10091
| 2 | test2 |
10192
| 3 | test3 |
10293
+------+-------+
103-
```
94+
```

0 commit comments

Comments
 (0)