How to generate the whole database script in MySQL Workbench?

后端 未结 11 938
暗喜
暗喜 2021-01-30 06:22

I want to take the whole database. Where do I find the database file?

And is there a way to write the whole database with all data to a text file (like the one in SQL Se

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 06:53

    Surprisingly the Data Export in the MySql Workbench is not just for data, in fact it is ideal for generating SQL scripts for the whole database (including views, stored procedures and functions) with just a few clicks. If you want just the scripts and no data simply select the "Skip table data" option. It can generate separate files or a self contained file. Here are more details about the feature: http://dev.mysql.com/doc/workbench/en/wb-mysql-connections-navigator-management-data-export.html

提交回复
热议问题