Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mysql

Posted on 2011-09-25
3
Medium Priority
?
376 Views
Last Modified: 2012-05-12
I run a database on mysql... I am running windows 7 and I need to back up the whole database including views, tables, data to another machine windows 7...
How to best do that
0
Comment
Question by:EmadGirgis
3 Comments
 
LVL 24

Accepted Solution

by:
johanntagle earned 2000 total points
ID: 36596757
If your data is still small, mysqldump should do it.  See http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

If your DB is already in gigs and you can afford to shutdown your database:

1.  Determine your datafile directory by looking at my.cnf
2.  Shutdown both source and target databases
3.  Copy the full datafile directory including subdirectories
4.  Restart the databases

If you cannot afford to shutdown the source database, try Percona Xtrabackup - the windows version is still in Alpha though.  See http://www.percona.com/downloads/XtraBackup/XtraBackup-1.6/Windows-alpha/
0
 
LVL 2

Expert Comment

by:mansooralia_yahoo
ID: 36596984
try phpmyadmin, and then exporting, select stored procedures too in the check box
0
 

Author Closing Comment

by:EmadGirgis
ID: 36597151
It appeared to be the easiest way to shutdown the database and move the data directory

Thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 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