dbeaver icon indicating copy to clipboard operation
dbeaver copied to clipboard

Clickhouse 0.8.x not working without user and password. <=0.7.X not showing tables

Open Pijuli opened this issue 11 months ago • 10 comments

Description

With the "last" dbeaver udpate, new Clickhouse driver is used. With the local Clickhouse service I'm unable to connect without user and password. Is there any flag?

Image

If I download the driver to 0.7.X or 0.6.X I can log in, but the tables do not show.

Image

I can be sure that it worked properly because a mate can connect to my local instance and see the tables properly. He is using dbeaver 24.3.2 and and 0.6.1 connector

Ideas?

DBeaver Version

Community Edition 25.0.4

Operating System

Ubuntu 24.10

Database and driver

Clickhouse version clickhouse/clickhouse-server:24.10-alpine Driver 0.8.X

Steps to reproduce

No response

Additional context

No response

Pijuli avatar May 09 '25 10:05 Pijuli

Hello @Pijuli On connection page please press "Driver Setting" Image And here you can check "Allow empty password"

Image

IvanGorshechnikov avatar May 15 '25 09:05 IvanGorshechnikov

Been there, done that. No luck. First and second screenshots are from the latest DBeaver 25.0.4 with the latest connector

Config Image

Check Image

These are from DBeaver 24.3.5 with an old connector Config Image

Check Image

Pijuli avatar May 19 '25 08:05 Pijuli

Thank you for your detailed answer As I can see in the Clickhouse JDBC driver latest (0.8.5) (which DBeaver is using), you can't log in without a username and password https://github.com/ClickHouse/clickhouse-java/blob/2d305b75e704146c2a515edf751a57c4350eaca0/client-v2/src/main/java/com/clickhouse/client/api/Client.java#L1014

Can you try to create your connection with "Clickhouse (Legacy)" driver?

Image

IvanGorshechnikov avatar May 19 '25 10:05 IvanGorshechnikov

Legacy, afaik, is for an older version of Clickhouse and I'm way after that version

Pijuli avatar May 20 '25 14:05 Pijuli

Well, it happens to work. I feel it slower, but it works. I'm using clickhouse/clickhouse-server:24.10-alpine if that gives any idea where the bug is

Pijuli avatar May 20 '25 14:05 Pijuli

It does not work. I can't access the tables with the message "Unsupported data type: Bool" So, I might be right. Legacy won't work

Pijuli avatar May 20 '25 15:05 Pijuli

Since the clickhouse JDBC driver 0.6, it doesn't support authenticating without a username and password. You can use older versions of that driver, like 0.5, or set other authentication methods

IvanGorshechnikov avatar May 22 '25 10:05 IvanGorshechnikov

Using an older driver does not work in latest DBeaver. Tables appear to be empty. I had to install an older version of DBeaver to make it work... so not a proper solution at all. Why that change? You can still do clickhouse locally without auth. Makes no sense

Pijuli avatar May 27 '25 07:05 Pijuli

In DBeaver, we updated the recommended driver version from 0.6.1 to 0.8.5, and we now support the 0.8.5 JDBC Clickhouse driver.

Unfortunately, Clickhouse doesn't support connecting without authorization. It is strange that they support that feature in their database server but don't support it in their latest drivers, but we can't help you with that.

I recommend that you change the auth type to the usual user. And you can create it without a password and log in with it.

IvanGorshechnikov avatar Jun 12 '25 12:06 IvanGorshechnikov

I don't have the authority to do that change. Also, last DBeaver version has the option to install an old driver, but the driver does not work properly. Whilst installing an old version of DBeaver and using the old driver does work. Up to you if you want to fix the old driver with the new DBeaver version 🤷‍♀

Pijuli avatar Jun 12 '25 14:06 Pijuli

We have fixed the older driver versions in the new DBeaver version. Please, try to update to the latest versions

IvanGorshechnikov avatar Jul 21 '25 11:07 IvanGorshechnikov

It's been a while since there has been an update here. Please let me know if the issue is still present and provide additional information.

arhayka avatar Aug 31 '25 19:08 arhayka

This seems to be fixed. Thank you

Pijuli avatar Nov 24 '25 11:11 Pijuli