Solve datagrip connection mysql8.0.4

The company's mysql8.0.3 has been upgraded to 8.0.4 through the official mysql source.

Then various remote management clients are scrapped. After investigation, the connection library of jdbc is not suitable for the default authentication method of the new version .

The official gave a new mysql-connector-java-8.0.9-rc, which can solve this problem. Let's take datadrip as an example to record the experience of stepping on the pit.

system environment

This example is valid in ubuntu17.10, KDE plasma environment, and it is believed that Windows 10 is also valid. The remote database server is centos7, and the mysql8.0.4 community edition is installed using the mysql official yum source.

Download and install DataGrip (omitted)

Download mysql-connector-java-8.0.9-rc

Download Connector/J

Unzip it somewhere you can find it, there is a mysql-connector-java-8.0.9-rc-bin.jar file in the unzipped folder, which will be used later.

start setup

  • Start datagrip, file->data sources

data sources

  • Copy a mysql configuration

duplicate

  • I renamed it to mysql 8.0

  • Set as shown

Set as shown

  • In the same interface, click the plus sign in the upper left corner to create a new project data source with mysql 8.0
  • Pay attention to two places

Note 1 Note 2

  • Save and test the connection

test connection

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325072428&siteId=291194637