Solved

Copy whole mySQL database to another computer

Posted on 2014-11-27
4
133 Views
Last Modified: 2014-12-10
I have setup WAMP and a php website on few local computers (for exhibition demonstration). The file hierarchy and web pages are identical. Can I simply copy a database files from one computer to other, without go through the dump backup and restore.

Tks
0
Comment
Question by:AXISHK
  • 2
4 Comments
 
LVL 11

Expert Comment

by:Radek Baranowski
ID: 40469003
No, I don't think so.

but you might try - if it works it works, if not - you will go thru normal backup/restore cycle.
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40469114
It should work if you don't have any activity before and during copy (best if you stop the Mysql servers on both computers).
Just copy the "data" folder and you're set.

HTH,
Dan
0
 

Author Comment

by:AXISHK
ID: 40469923
Tks, Normally, where is the data folder for mysql. I install WAMP on my Window platform, Tks
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40470045
wamp\bin\mysql\mysql5.x.xx\data
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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

19 Experts available now in Live!

Get 1:1 Help Now