Import .sql Files in PhpStorm

Sometimes you just want to import an .sql File in PhpStorm. At a first glance you would think this is in the options menu of your DB Tab – but sadly it’s not…:

This will just open the option to import files like .csv and .tsv

Solution

Add the .sql file to your project and right click it:

Choose your DB from your project and click it.

Et voilà!

I know this can be much faster via console – this is just for users who are more comfortable with the IDE.

 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.