Step1
메인서버에서 복인의 데이터베이스와 wordpress 파일을 백업 받는다.
예를 들면
cd /home/cybersoldier/public_html
tar cvfz wpbackup.tar.gz wordpress
mysqldump -u cybersoldier -p123456 cybersoldier > cybersoldier.sql
Step2
복구 서버
cd /var/www/html
로 이동후 본인의 디렉토리를 만든다.
mkdir cybersoldier
백업 받은 파일을 cd /var/www/html/cybersoldier
디렉토리로 옮긴다.
tar zxvf wpbackup.tar.gz
Step3
mysql -u root -p
create database cybersoldier;
grant all privileges on cybersoldier.* to cybersoldier@'%'identified by '123456';
flush privileges;
Step4
mysql -u cybersoldier -p cybersoldier < cybersoldier.sql
Step5
workbench 를 이용해 내용을 수정한다.
Step6
http://ip or 도메인/cybersoldier/wordpress로 메인서버의 내용과 동일한지 확인한다.
권한풀기
grant all privileges on comozs.* to comozs@’%’identified by ‘123456’;
grant all privileges on gleaming.* to gleaming@’%’identified by ‘123456’;
grant all privileges on liosnal.* to liosnal@’%’identified by ‘123456’;
grant all privileges on mmsd.* to mmsd@’%’identified by ‘123456’;
grant all privileges on imemory.* to imemory@’%’identified by ‘123456’;
grant all privileges on molpos.* to molpos@’%’identified by ‘123456’;
grant all privileges on hitbp.* to hitbp@’%’identified by ‘123456’;
grant all privileges on dinero.* to dinero@’%’identified by ‘123456’;
grant all privileges on admiration.* to admiration@’%’identified by ‘123456’;
grant all privileges on shcherish.* to shcherish@’%’identified by ‘123456’;