Restore mysql databases that is created using direct admin

view full story

http://serverfault.com – PS: I'm sorry my description is a bit long. I am just trying to give all the information. At first, I was not able to login to direct admin. I research on the web on what are the causes and found out that directadmin cannot make sessions when the disk is full. I check through ssh and found out that the root directory was indeed full. To be able to login to directadmin and start mysql, I decided to add a soft link of the /var/lib/mysql/ to /home/mysql. Since my database used up the most of the root directory. I move first the /var/lib/mysql to /var/lib/mysql.mark before I created the softlinks (HowTos)