在clickhouse (我的操作系统Ubuntu18.04)的授权方面有问题。我可以和clickhouse客户联系。
clickhouse-client --user=dev --password=dev123
<jemalloc>: Number of CPUs detected is not deterministic. Per-CPU arena disabled.
ClickHouse client version 22.8.5.29 (official build).
Connecting to localhost:9000 as user dev.
Connected to ClickHouse server version 22.8.5 revision 54460.
但是如果我尝试连接到网络,我就会出错。
curl http://localhost:8123/?user=dev&password=dev123
Code: 516. DB::Exception: dev: Authentication failed: password is incorrect or there is no user with such name. (AUTHENTICATION_FAILED) (version 22.8.5.29 (official build))
端口8123的授权有什么问题?我是否需要为访问创建特定的用户,还是需要添加连接的权限?
发布于 2022-10-19 10:24:21
我同意Geoff的评论,很确定这是因为没有引用url和“&”导致第二部分被视为另一个shell命令。尝试:
curl 'http://localhost:8123/?user=dev&password=dev123'
如果没有,你可以试试基本的选择吗?
curl -u 'dev:dev123' 'localhost:8123?query=SELECT+1'
发布于 2022-10-19 06:54:06
尝试使用ufw打开端口。如果ufw不工作,你可以尝试使用iptables。
https://stackoverflow.com/questions/74120815
复制相似问题