ClickHouse exception code:516
Posted mask哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ClickHouse exception code:516相关的知识,希望对你有一定的参考价值。
当客户端连接clickhouse-server出现异常:ClickHouse exception, code: 516 ,
经过分析错误码:
ClickHouse exception, code: 516, host: 192.168.0.108, port: 8888; Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name (version 20.9.2.20 (official build))
发现是clickhouse授权问题,需修改clickhouse 配置文件:
1.config.xml中listen_host为::
2.修改users.xml中
<!-- Users and ACL. -->
<users>
<!-- If user name was not specified, 'default' user is used. -->
<default>
<password>qwe123</password>
<networks incl="networks" replace="replace">
<ip>::/0</ip>
</networks>
<!-- Settings profile for user. -->
<profile>default</profile>
<!-- Quota for user. -->
<quota>default</quota>
<!-- User can create other users and grant rights to them. -->
<access_management>0</access_management>
</default>
</users>
以上是关于ClickHouse exception code:516的主要内容,如果未能解决你的问题,请参考以下文章
clickhouse[未解决] clickhouse Exception: Table is in readonly mode
clickhouse_driver.errors.ServerException:代码:62.DB::Exception:语法错误
ClickHouse-Dberver工具连接,在ck readonly模式下SQL 错误 [164] 问题总结
clickhouse 复杂查询时嵌套连接join可能存在的异常解决(xjl456852原创)
代码:306。DB::Exception:从 localhost:9000 接收。 DB::Exception:堆栈大小太大。堆栈地址