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.