How to import CSV data to MySQL in JetBrains DataGrip

Ilya Rusin picture Ilya Rusin · Jan 20, 2016 · Viewed 20.1k times · Source

I'm studying MySQL. I need to import data from a CSV file to a MySQL table using JetBrains DataGrip.

I've done such this job before in dbForge MySQL, but last week I moved from Windows to Linux.

There are some questions how to import CSV to MySQL on StackOverflow, but I'm still not so familiar with SQL.

How do I import a CSV data file in JetBrains DataGrip?

Thank you!

Answer

moscas picture moscas · Feb 29, 2016
  1. Context menu of datasource you want to import to
  2. Choose Import from File....
  3. Customize the table that will be created, check the preview and press OK.

Context menu Import Dialog