I have a MySQL database, it is getting larger and larger and I want to move the whole database to another mount point, where I have enough storage. I want my current data to be transferred, and that new data get saved to the new position.
software stack: MySQL 5 running on FreeBSD 6
Of course other answers are valid. But if you want to keep the default configuration, do following:
mv /var/lib/mysql /var/lib/mysql.backup
/var/lib/mysql
cp -r /var/lib/mysql.backup /var/lib/mysql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With