I borked my 10.04 install and created another partition and now have 10.10 installed there. On the previous install, I had XAMPP for linux installed and have one database, or all for that matter, I would like moved to the new partition/install. (XAMPP already installed)
I found this on UbuntuForums:
...but for me, the path is: /opt/lampp/var/mysql/
The previous partition was on sda1 and the new is on sda6.
I have tried many variations but I just cannot get the mountpoint right, or at least when I try, I get the "No such file or directory" error.
I have tried:
and
Any suggestions?
thanks...
I found this on UbuntuForums:
Code:
Stop MySQL with "sudo /etc/init.d/mysql stop". Make a backup of the current (clean) MySQL data directory with "sudo cp -Rp /var/lib/mysql /var/lib/mysql.backup". Then copy the old data directory from the old drive with "sudo cp -Rp /mountpoint/var/lib/mysql /var/lib/mysql", where "mountpoint" is the path to the mount. Now restart MySQL with "sudo /etc/init.d/mysql start". With any luck, MySQL should restart, and you should have your old databases back.
The previous partition was on sda1 and the new is on sda6.
I have tried many variations but I just cannot get the mountpoint right, or at least when I try, I get the "No such file or directory" error.
I have tried:
Code:
sudo cp -Rp /sda1/opt/lampp/var/mysql/ /opt/lampp/var/mysql/ cp: cannot stat `/sda1/opt/lampp/var/mysql/': No such file or directory
Code:
sudo cp -Rp /dev/sda1/opt/lampp/var/mysql/ /opt/lampp/var/mysql/ cp: cannot stat `/dev/sda1/opt/lampp/var/mysql/': Not a directory
thanks...
Comment