Solved

Using MySQL workbench, how do you backup/restore the all your database's info?

Posted on 2012-12-23
3
409 Views
Last Modified: 2013-01-18
Im using MySQL 5.5 and workbench 5.2 I would like to backup all my databases and all the complete data from my server then restore it on my local server. What is the best way to do this?
0
Comment
Question by:overcolor
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
wadehults earned 500 total points
ID: 38717262
In Workbench, from the main screen, you:

1. Select Manage Import/Export

under Server Administration.

2. Select the server instance you desire

3. Select Export

In the left-side task bar, select export.

4. Select database schema

In the main task area, select the database schema you wish to export.

5. Select export type

Select "Export to self-contained file"

6. Name the file

Define the export file name

7. Select data dump options

Select what types of data to export (optional) using the checkboxes provided below the file name block.

8. Create file

Click "Start Export"

9. Upload newly created SQL file

The upload uses the "Data Import/Restore" option instead of the "Select Export" in step 3.

10. Select Input source

Select "Import from self-contained file" in the task window.

11. Find your created SQL file

Use the browse function to find your generated SQL file.

12. Import

Click "Start Import"
0
 

Author Comment

by:overcolor
ID: 38717693
Do I have to do each Database Schema one-byone?
0
 
LVL 3

Expert Comment

by:wadehults
ID: 38717804
If you are retaining the structure of all databases as an exact mirror, you can simply select all of the database schemas and compact them into a single file. The only reason you should need to do individual schema exports would be in a situation where you have different domains served from different servers.

The self-contained sql file will contain all of the databases selected, all tables, and all records. This includes all views and queries that are contained within the database schema, unless you select the option to exclude data and only keep the structure.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question