Web Hosting Talk







View Full Version : MySQL restore question


jtace
05-27-2006, 03:40 PM
What's the best way to go about restoring a mysql db? I'm in the situation where I didn't have a chance to do a proper db dump so it would be a simple restore. I have all the mysql db files themselves copied to a hard drive, but I don't know how to get them restored to the current running mysql db from thier current state.

I know enough to get around in Linux in SSH and such, but there is still a ton I don't know. Any ideas?

flashwebhost
05-27-2006, 03:43 PM
You can copy the binary files to mysql data store folder (/usr/lib/mysql). I used to do this when i do server move. It always worked fine for me.

Xorlev
05-27-2006, 03:50 PM
Make absolutely certain MySQL is shut down before restoring the database binaries or it'll just empty them.

azizny
05-27-2006, 04:16 PM
Is mysql running?

if yes then using comman prompt, otherwise use the above method..

Peace,

jtace
05-27-2006, 05:00 PM
thanks, trying it now.