Search code examples
mysqlcsvimportdatagrip

How to import CSV data to MySQL in JetBrains DataGrip


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!


Solution

    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