在Windows中, 使用PHP 的mysqli或pdo连接clickhouse 时, 报错:
The server requested authentication method unknown to the client
可能是密码认证方式有问题, 尝试使用明文和SHA256 哈希值都不行.
最后使用 双重 SHA1 哈希的形式指定密码 就可以了.
参考: https://clickhouse.com/docs/zh/operations/settings/settings-users#user-namepassword
本文为Larwas原创文章,转载无需和我联系,但请注明来自larwas博客 https://larwas.com
最新评论