1.SymmetricDS 3.15 Tutorials中写的命令并不符合windows的语法,需要将命令调整成本系统的命令再去执行。
(1)cp corp-000.properties store-001.properties store-002.properties …/engines
windows用的是copy而非cp,并且一次只能复制一个
(2)…/bin/dbimport --engine corp-000 --format XML --alter-case create_sample.xml
所有的/在windows中都得替换成’\‘
2.sample案例中出现Error: java.sql.SQLSyntaxErrorException: Table ‘test_sym1.item_selling_price’ doesn’t exist这种表找不到的情况
请确定bin/symadmin --engine corp-000 reload-node 001这条命令是否执行并且命令行回复执行正确
3…/bin/dbimport --engine corp-000 insert_sample.sql这条命令是打开交互式 SQL 会话的命令
4.在自己编辑Sync URL的时候,即如下部分,
Sync URL where other nodes can contact this node to push/pull data or register.
sync.url=http://localhost:31415/sync/corp-000
端口号不要写3306,写8080或者31415,否则会出现目标节点连不上主节点的错误,即Unexpected error during registration: Received an unexpected response code of -1 from the server StackTraceKey [HttpException:2912363226]这个错误
5.编辑proprietaries文件时不要加大括号