Reputation: 421
How I can export a data base from DataGrip at one SQL file as phpmyadmin export?
If I use Dump Data To Files, DataGrip save one table at one file.
And how I can create backup of all MySQL databases, which open in DataGrip?
Upvotes: 42
Views: 81272
Reputation: 73
You can now tick "Single File" while choosing "Dump Data to File(s)" in DataGrip 2018.3.1
Upvotes: 3
Reputation: 632
Old thread here, but for those who may stumble upon it, the newer versions of DataGrip have a new option, "dump with mysqldump", that will let you generate a dump contained in a single .sql output file.
Upvotes: 36
Reputation: 1023
Running DataGrip 2016.2.5 you can select sever tables and right click->Copy DDL. That puts a drop/create script on the clipboard, which you can then paste into a text file.
Upvotes: 14
Reputation: 406
I just got the DataGrip 2016.2.1 update this morning. It looks like the feature has been added (at least for SQL SERVER, the only one I tested). It wasn't available in the previous version - I tried.
Select a range of tables and right-click on them, or right-click on the database name. The Dump Data to Files
option is now there.
Unfortunately, it still dumps to multiple files. But it beats the heck out of right-clicking on each table in turn.
Upvotes: 5