How to take MySQL database backup using MySQL Workbench?

前端 未结 9 2187
囚心锁ツ
囚心锁ツ 2020-11-30 18:17

How to take database backup using MySQL Workbench? Can we take backup in the following ways-

  1. Backup file(.sql) contains both Create Table statements and Insert
相关标签:
9条回答
  • 2020-11-30 18:37

    The Data Export function in MySQL Workbench allows 2 of the 3 ways. There's a checkbox Skip Table Data (no-data) on the export page which allows to either dump with or without data. Just dumping the data without meta data is not supported.

    0 讨论(0)
  • 2020-11-30 18:40

    For Workbench 6.0

    Open MySql workbench. To take database backup you need to create New Server Instance(If not available) within Server Administration.

    Steps to Create New Server Instance:

    1. Select New Server Instance option within Server Administrator.
    2. Provide connection details.

    After creating new server instance , it will be available in Server Administration list. Double click on Server instance you have created OR Click on Manage Import/Export option and Select Server Instance.

    Now, From DATA EXPORT/RESTORE select DATA EXPORT option,Select Schema and Schema Object for backup.

    You can take generate backup file in different way as given below-

    Q.1) Backup file(.sql) contains both Create Table statements and Insert into Table Statements

    ANS:

    1. Select Start Export Option

    Q.2) Backup file(.sql) contains only Create Table Statements, not Insert into Table statements for all tables

    ANS:

    1. Select Skip Table Data(no-data) option

    2. Select Start Export Option

    Q.3) Backup file(.sql) contains only Insert into Table Statements, not Create Table statements for all tables

    ANS:

    1. Select Advance Option Tab, Within Tables Panel- select no-create info-Do not write CREATE TABLE statement that re-create each dumped table option.
    2. Select Start Export Option

    For Workbench 6.3

    1. Click on Management tab at left side in Navigator Panel
    2. Click on Data Export Option
    3. Select Schema
    4. Select Tables
    5. Select required option from dropdown below the tables list as per your requirement
    6. Select Include Create schema checkbox
    7. Click on Advance option
    8. Select Complete insert checkbox in Inserts Panel
    9. Start Export

    For 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 on Export to Self-Contained file
    3. Check if Advanced Options... are exactly as you want the export
    4. Click the button Start Export
    0 讨论(0)
  • 2020-11-30 18:43

    In workbench 6.0 Connect to any of the database. You will see two tabs.

    1.Management 2. Schemas

    By default Schemas tab is selected. Select Management tab then select Data Export . You will get list of all databases. select the desired database and and the file name and ther options you wish and start export. You are done with backup.

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