Use Datagrip to connect Snowflake
Log in to your Snowflake Account. Your account URL should look similar to the one below.
https://<account_id>.snowflakecomputing.com
This URL is essentially your host. Copy and paste it in the ‘Host’ field.
Note the nudge at the bottom asking you to download the missing driver files.
Add the name of the Database and the Warehouse you would like to set as default. Please note that specifying a name here doesn’t stop you from querying other Databases. The Database specified here will be set as default, i.e., it will be queried if the Database name is not explicitly specified in the query. You can try that for yourself: specify a Database name here, and then query another Database. It will work.
References
Setting Up Jetbrains DataGrip Snowflake Connection Made Easy