Solved

Mysql

Posted on 2011-09-25
3
367 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 500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

825 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