Solved

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

Posted on 2012-12-23
3
406 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now