Migrating to a new server
Last updated
ssh-keygen -t rsa -b 4096
# View and CTRL+C copy the key
cat ~/.ssh/id_rsa.pub# Open the authorized keys file
nano ~/.ssh/authorized_keys
# Add a new line with the previous contents from id_rsa.pub
ssh-rsa AAAA_EXISTING_KEYS...
ssh-rsa AAAA_THE_NEW_KEY...scp your_backup.sql.gz root@12.45.67.89:/tmp/ust.sql.gzgunzip ust.sql.gz
mysql -u root -p -e "CREATE DATABASE new_database_name; USE new_database_name; SET autocommit=0 ; source ust.sql ; COMMIT;" apt-get install percona-toolkit
pt-show-grants -u YOUR_MYSQL_USER -p YOUR_MYSQL_PASSWORD --database YOUR_UXWIZZ_DBcd /var/www/
scp -r html root@12.45.67.89:/var/www/