Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 正在尝试将zongji连接到远程数据库_Mysql_Node.js_Remote Server - Fatal编程技术网

Mysql 正在尝试将zongji连接到远程数据库

Mysql 正在尝试将zongji连接到远程数据库,mysql,node.js,remote-server,Mysql,Node.js,Remote Server,我正在尝试将mysql服务器与web应用程序服务器分离。我使用node.js和zongji来监听某些表上bin日志中的更改。当进行更改时,节点ping客户机,让他们知道数据发生了更改 在另一台服务器上尝试node.js和zongji连接同一个数据库时,我发现了一个错误 message: 'A slave with the same server_uuid/server_id as this slave has connected to the master; the first event \'

我正在尝试将mysql服务器与web应用程序服务器分离。我使用node.js和zongji来监听某些表上bin日志中的更改。当进行更改时,节点ping客户机,让他们知道数据发生了更改

在另一台服务器上尝试node.js和zongji连接同一个数据库时,我发现了一个错误

message: 'A slave with the same server_uuid/server_id as this slave has connected to the master; the first event \'mysql-1234-bin.000162\' at 79303225, the last event read from \'mysql-1234-bin.000162\' at 256, the last byte read from \'mysql-1234-bin.000162\' at 79303225.
我是否需要在服务器上创建从服务器以连接到远程mysql? Zongji是否要求在本地计算机上安装mysql? 如果这是问题所在,我将如何更改服务器ID

我发现我尝试连接到的远程数据库在服务器上设置了主复制