Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import a database to DataGrip(0xDBE)

Tags:

mysql

datagrip

How do I import a database just like in phpmyadmin at DataGrip?

I have the .sql exported from phpmyadmin... but those are lots of lines so that the IDE stops working when trying to run the whole .sql

like image 937
Jonathan Solorzano Avatar asked Dec 19 '15 17:12

Jonathan Solorzano


People also ask

How do I import a database into DataGrip?

Navigate to the file that contains delimiter-separated values and double-click it. In the Import "file_name" File dialog, specify the data conversion settings and click Import. You can select in what schema to create a table and whether to import data to a new table or an existing one.

How do I clone a database in DataGrip?

Step 1: Choose the database which you want to clone. Step 2: Right click => SQL Scripts => Generate DDL to Clipboard. Step 3: Create a console file in destination DB => Paste DDL from the clipboard to it. Step 4: Run all scripts.

What databases does DataGrip support?

DataGrip is a database management environment for developers. It is designed to query, create, and manage databases. Databases can work locally, on a server, or in the cloud. Supports MySQL, PostgreSQL, Microsoft SQL Server, Oracle, and more.


1 Answers

In DataGrip go to File > Open and select your mysql dump file. Then right click the tab for the file to get the context menu, and select "Run [your filename...]" option. It may ask you to select your schema to apply the run to. But this is how I accomplished importing a dump from phpMyadmin using DataGrip.

enter image description here

like image 161
Karl Avatar answered Sep 24 '22 19:09

Karl