1. back up db
mysqldump –u USERNAME –p DATABASENAME > FILENAME.sql
2. back up file
tar cvzf wordpress.tar.gz *
3. impor wp ke server baru
wget serverlama.com/wordpress.tar.gz
4. extract
tar -zxvf wordpress.tar.gz
5. create new DB
mysql -u root -p
CREATE DATABASE wordpress;
GRANT ALL PRIVILEGES ON wordpress.* TO "wp_user"@"localhost" IDENTIFIED BY "ENTER_A_PASSWORD";
FLUSH PRIVILEGES;
EXIT
6. import mysql dump file to DB
$ mysql -u username -p -h localhost DATA-BASE-NAME < data.sql
7.Done
More Stories
Install HHVM + NGINX with PHP-FPM as a fallback To Speed Up Your WordPress On Ubuntu 14.04
Optimasi Plugin WP Super Cache di Nginx Web Server