写一段datax同步数据的代码
时间: 2023-05-14 09:06:31 浏览: 136
很高兴为您提供一段datax同步数据的代码:
{
"job": {
"setting": {
"speed": {
"channel": 3
},
"errorLimit": {
"record": 0,
"percentage": 0.02
}
},
"content": [
{
"reader": {
"name": "mysqlreader",
"parameter": {
"username": "root",
"password": "123456",
"column": [
"id",
"name",
"age"
],
"connection": [
{
"jdbcUrl": [
"jdbc:mysql://localhost:3306/test"
],
"table": [
"user"
]
}
]
}
},
"writer": {
"name": "mysqlwriter",
"parameter": {
"username": "root",
"password": "123456",
"column": [
"id",
"name",
"age"
],
"connection": [
{
"jdbcUrl": "jdbc:mysql://localhost:3306/test",
"table": "user_copy"
}
]
}
}
}
]
}
}
希望这段代码能够帮助到您!
阅读全文