How to generate the whole database script in MySQL Workbench?

后端 未结 11 936
暗喜
暗喜 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:50

    in mysql workbench server>>>>>>export Data then follow instructions it will generate insert statements for all tables data each table will has .sql file for all its contained data

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-01-30 06:57

    there is data export option in MySQL workbech

    enter image description here

    0 讨论(0)
  • 2021-01-30 07:00

    Using Windows 10 and MySql Workbench 8.0

    1. Go to Server tab
    2. Go to Database Export

    This opens up something like this

    1. Select the schema to export in the Tables to export
    2. Click the button Start Export
    0 讨论(0)
  • 2021-01-30 07:02

    Try the export function of phpMyAdmin.

    I think there is also a possibility to copy the database files from one server to another, but I do not have a server available at the moment so I can't test it.

    0 讨论(0)
  • 2021-01-30 07:04

    I found this question by searching Google for "mysql workbench export database sql file". The answers here did not help me, but I eventually did find the answer, so I am posting it here for future generations to find:

    Answer

    In MySQLWorkbench 6.0, do the following:

    1. Select the appropriate database under MySQL Connections
    2. On the top-left hand side of screen, under the MANAGEMENT heading, select "Data Export".

    Here is a screenshot for reference:

    0 讨论(0)
提交回复
热议问题