Today I was asked to transfer an OSCommerce store
with MySQL for
a client.
First of all, we need to login to the old server and archive all
the data. So navigate to home directory and issue the following
command
tar -cvf old.tar ./
Now FTP this directory to the new server and untar it.
tar -xvf old.tar
Now we need to dump MySQL databases. Login to old server and issue:
mysqldump -uusername -ppassword -a --databases database1 database2 database3 | ssh user@newhost.com "mysql -uusername_new -h hostname_new.com -ppassword"
The hostname is needed in the above command if you cannot connect
using localhost.
Q: Does anyone know how I can dump a database that …