Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2012-12-23
3
Medium Priority
?
416 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
wadehults earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Creating and Managing Databases with phpMyAdmin in cPanel.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

610 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