linux - MySQL how to recover data from an old disk? -
is possible can recover data mysql ubuntu server? needed change disk in server installed new ubuntu, in old disk still have files in /var/lib/mysql/ old databases are. possible recover database files? how it? copying database old disk /var/lib/mysql/ new server disk? work instantly or need create first empty databases in phpmyadmin?
if data still here it´s promising recovery.
1/. need /var/lib/mysql directory
sudo cp -r -p /var/lib/mysql /var/lib/mysql.back
2/. reinstall mysql (it erase mysql folder)
sudo apt-get install mysql-server
3/. erase new data folder old one
sudo cp -r -p /var/lib/mysql.bask /var/lib/mysql
if you´re using same directories should work that.
Comments
Post a Comment