DBeaver driver connection error solution (tip: com.mysql.cj.jdbc.Driver error)

1. It prompts driver error and the download keeps failing.

        1. Open DBeaver and click Window-->Window-->Preferences-->Click Driver-->Maven-->Add new source

        2. Add the source address and apply it. Move the added source address to the top (I disabled other addresses so I can’t use them).

        Ali: http://maven.aliyun.com/nexus/content/groups/public/

        腾讯:Repository - Nexus Repository Managerhttp://mirrors.cloud.tencent.com/nexus/repository/maven-public/

 2. To update the driver, first check the database version. Here it is 8.0.27. You need to select the corresponding version to update.

 

Click the menu bar-->Database-->Driver Management-->Find mysql-->Double-click mysql-->Select the library-->Select the driver-->Click to download-->Select the version number in the version-->Select Force installation and download-->After the download is complete, click Test Connection

 

3. Other settings: Open the driver settings and set allowPublicKeyRetrieval to True.

 

 Hope it's useful to everyone, Tks

Guess you like

Origin blog.csdn.net/m0_63681407/article/details/129912898