How do I start the MySQL service in recovery mode from a mounted hard drive… here is a solution to the problem.
How do I start the MySQL service in recovery mode from a mounted hard drive
I have a server crash and mount my disk to /mnt/
I backed up all the data for the time being just to be sure, but do need my mysql database along with structure and data.
I
think this is probably the easiest way to get mysql running so I can do a database dump, right?
An attempt has been made to run /mnt/etc/init.d/mysql start
Or is there a way to copy all the files and run the database locally on my computer?
I’m stuck and really need some help. Thanks in advance!
Solution
It worked!!!
The solution is to run these as well:
mount -o bind /dev /mnt/dev
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
chroot /mnt