Alibaba mysql database binlog incremental subscription & consumer components Canal's php client[阿里巴巴mysql数据库binlog的增量订阅&消费组件 Canal 的 php 客户端 ] https://github.com/alibaba/canal
385
stars
67
forks
source link
unpack(): Type N: not enough input, need 4, have 0 #36
Open
asura0129 opened 3 months ago
server端增加了
canal instance user/passwd
canal.user = canal canal.passwd = E3619321C1A937C46A0D8BD1DAC39F93B27D4458 后php代码 $client = CanalConnectorFactory::createClient(CanalConnectorFactory::CLIENT_SOCKET); $client->connect("127.0.0.1", 11111); $client->checkValid('canal','canal'); $client->subscribe("1001", "test", "trait\..*");
传入用户名密码后,报错unpack(): Type N: not enough input, need 4, have 0 进入文件xingwenge/canal_php/src/adapter/clue/CanalConnector.php 打印$data为空