简体   繁体   中英

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?

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.

As far as I know, you can export data from tables. Some types of database allows you to Copy DDL of any node.

More at

在撰写本文时(2018.1),右键单击数据库可以选择“转储'mysqldump'”。

In the latest editions you can right click on a Database and dump to file. It exports to individual files per table.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM