Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can PhpStorm dump a MySQL database into a sql file?

I know PhpStorm can connect to a database and work with it. Is it possible to export the database to a myDb.sql file with phpstorm?

like image 906
Sebas Zella Avatar asked Feb 19 '14 14:02

Sebas Zella


People also ask

What is MySQL dump file?

4 mysqldump — A Database Backup Program. The mysqldump client utility performs logical backups, producing a set of SQL statements that can be executed to reproduce the original database object definitions and table data. It dumps one or more MySQL databases for backup or transfer to another SQL server.


2 Answers

As of this writing (2018.1), right clicking on a database gives you the option to "Dump with 'mysqldump'".

like image 50
Michael Cordingley Avatar answered Sep 28 '22 09:09

Michael Cordingley


No, in phpstorm there is no such option.

You only can export single Tables from the Database by clicking on ONE single Table (doesn't work if you mark more than one Table) and open Mouse-Menu (right mouseclick). There you choose "Save to File..." an Choose what you need (for example " SQL Insert Statements".

For having a good DB-Client to manage the whole Stuff, use DBeaver (Standalone Version), or MysqlWorkbench. I preffer DBeaver.

like image 44
suther Avatar answered Sep 28 '22 09:09

suther