DataGrip 2024.2 Help

Report connection issues

One of the reasons of DataGrip not being able to establish connection to a database can be a JDBC driver issue. In this case, analyzing the JDBC driver log file helps to solve such a problem.

JDBC driver issue

You can enable the JDBC driver logging and manage log settings, if required. The IDE lets you change the log level and use a custom configuration of java.util.logging, provided by the support team.

Depending on the driver, its log file can be located in different directories. If the driver uses java.util.logging, then the log can be written in the idea.log file, to the directory that is set in the driver settings, or to your preferred directory. If the driver does not use java.util.logging, then the log can be written to your preferred directory.

For more information about idea.log, refer to Locate DataGrip log.

For the drivers that let you set the log file directory, you can set it using one of the following:

  • Enter the path or select it by clicking the Browse Browse icon in the Driver log extra path field.

  • Set the directory in the Custom configuration field following the JetBrains support team instructions.

Generate a JDBC driver log file

  1. Right-click the data source and navigate to Diagnostics | Show JDBC Log Settings.

    Manage the JDBC log settings
  2. Select the Enabled checkbox.

  3. (Optional) Change the JDBC driver log settings.

  4. Save the settings by clicking OK.

  5. Perform the connection attempt.

To report an issue, you can use any option that is described in the Where to report an issue section. But we recommend using the JetBrains Support Center.

Submit a request in the JetBrains Support Center

  1. Open the request form by doing one of the following:

    • Click Help | Contact Support.

      The request form will contain prefilled fields about your product and OS.

    • Go to the Submit a request page.

  2. Fill in the Submit a request form.

    If it is possible, attach some troubleshooting materials.

  3. Click Submit.

Reference

JDBC Log Settings dialog

Item

Description

Enabled

Turns on the JDBC driver logging.

Driver log Level

Changes the JDBC driver logging level.

Driver log extra path

Enter the JDBC driver log file path or select the directory by clicking the Browse browse icon.

Some of the JDBC drivers use java.util.logging to write their logs. For the others, you can set the directory for their logs yourself.

Custom configuration

Enter the configuration of java.util.logging provided by JetBrains support team.

Last modified: 14 March 2024