DataGrip



Introducing DataGrip. DataGrip boasts many of the must-have features you’d expect from a database GUI tool including: Support for Multiple Databases – DataGrip is the multi-engine database environment. If the DBMS has a JDBC driver you can connect to it via DataGrip. We would like to show you a description here but the site won’t allow us. JetBrains s.r.o. (formerly IntelliJ Software s.r.o.) is a Czech software development company whose tools are targeted towards software developers and project managers. As of 2019, the company has offices in Prague, Saint Petersburg, Moscow, Munich, Boston, Novosibirsk, Amsterdam, Foster City and Marlton, New Jersey. Simply, in DataGrip, open the properties of the database connection and click on 'driver' link. Then choose mysql driver v5.1. Let it download and install and it should work.

I really like JetBrains products. I use DataGrip all the time in my role as a DBA. I’m in the process of switching our company over the Active Directory logins and wanted to take things for a spin.

Being that most of my work is done on a Mac, DataGrip is pretty much the best tool available for working with a database. This How-To should work on any OS, I just haven’t tested it on any others (yet).

Enough talk: time for action.

Step 1: Get A Few Required JARs.

DataGrip

The main library you’ll be working with is ADAL4J (https://github.com/AzureAD/azure-activedirectory-library-for-java/wiki/ADAL4J-Basics). The simplest way to do this step, in my opinion, is to use a barebones Maven pom.xml. That way you don’t have to compile from source and find all the dependencies manually. Horray!

If you don’t have Maven (https://maven.apache.org/) installed you’ll need it. If you prefer Gradle, I’m sure the same can be accomplished with that.

Datagrip Postgresql

This is what my pom.xml looks like:

DataGrip

Datagrip Export

Now run this command wherever your pom.xml is at:

It will create a “lib” directory containing all the jars you need.

Step 2: Add the JARs to the Azure (Microsoft) Driver

1. In the Data Sources and Drivers window (File menu), select the Azure (Microsoft) driver. In the Driver files pane, click the + button and select “Custom JARs...

DataGrip

2. Navigate to the JARs fetched in Step 1. Select all of them.

Your screen should look something like this (aside from the fancy blurs to hide my super secret info).

Step 3: Altering the Advanced Connection Options

There is only one thing you need to change for Active Directory authentication. The authentication method. It’s really easy.

At this point, I’m assuming you have an existing connection. If not, create one and select the Azure (Microsoft) driver.

Navigate to the Advanced tab. I like to sort the options by Name. However you do it, find the setting named “authentication.”

Click in the Value column and select ActiveDirectoryPassword (if you’re on Windows™ and use integrated AD… select ActiveDirectoryIntegrated).

I imagine I don’t have to tell you to “click OK or Apply.”

Success (I hope)!

At this point you should be able to log in to your database instance. Of course, that assumes your credentials and hostname are correct. I hope this helps!

« Typescript, Unit tests and AWS Lambdas – Part 1