Restore to new site
-
I am using BackupWordpress to backup my production site and I now want to create a replica of my production site in test to check upgrades etc before doing the upgrade in the production site.
In order to restore my backup I would like to know if the following will work (using IIS7, php 5.3.24, mySQL 5.1):
1) Create a new site in IIS for the test website.
2) Create a new database and user in mySQL for the test site.
3) Restore the files (and .sql database backup) to the test website directory).
4) Change the wp-config.php file to the database name, username and password of the test site.Do I need to do anything in the .sql backup file with changing the database name, username and password from production to test?
Or do I just run the following in mySQL:
mysql -u username -p test_database_name < file.sqland it will import the backup data into the test database I already created?
The topic ‘Restore to new site’ is closed to new replies.