smi2 / phpClickHouse

php ClickHouse wrapper
MIT License
750 stars 139 forks source link

Port 3003 is for clickhouse-client program #159

Closed ruibin closed 3 years ago

ruibin commented 3 years ago

context:{"data":["2021-11-03"],"throwable":{"className":"ClickHouseDB\Exception\QueryException","file":"vendor/smi2/phpclickhouse/src/Statement.php(182)","code":400,"msg":"HttpCode:400 ; ;Port 3003 is for clickhouse-client program.\r\nYou must use port 3002 for HTTP.\r\n"}}

isublimity commented 3 years ago

Use pot 3002 ;)

ruibin commented 3 years ago

Sorry for this delay. I migrated some code. And the package conmunicate clickhouse server through TCP Mode. So I change the port to http port then is works