Import a database to DataGrip(0xDBE)

Jonathan Solorzano picture Jonathan Solorzano · Dec 19, 2015 · Viewed 24.7k times · Source

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

Answer

Karl picture Karl · May 9, 2017

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