Step 1. Downloading Files:
Start by downloading your wordpress site folder from your already existing development server.
Anything you have put into the local PC drive via FTP server or your server Cpanel.
Step 2. Exporting the Database:
In the hosting control panel for your existing build, you’ll need to get all of the data you’ve put into the system out. Using Tools > Export in WordPress is helpful but to ensure you get everything from the existing database, you should really use PHP MyAdmin and export all of the database tables.
Launch PHP MyAdmin, Log In using the existing database credentials, select the database you want to export from the left, then click the Export Tab. Select the Save Without Compression checkbox and you’ve got a backup on your desktop or local drive.
Step 3. Creating the New Database:
In the environment, Now you’ll need a new database. You will have both the Control Panel and FTP Details. If you can’t get Control Panel access, have the client create a Database for you and have them list the Database Name, Username, Password and Host Name. That and FTP will do the trick – but the client may have to import the database for you. Configure the wp-config.php file for your new site/database and continue to Step 4.
Step 4. Uploading
Backup the client’s existing website first. Then upload all of the appropriate wordpress folders to their host. At this point, you may want to delete the files in the root of their site and replace them with the wordpress root files to make the transition complete. Remember to update the wp-config.php first to be sure it will connect with the new database.
Changes in config.php file.
1) Define new site URL . (see below figure)
2) Database name
3) Database user name
4) User password
5) Host server name
Using a web browser, navigate the website and type /wp-admin/ after the url. Hopefully you encounter the WordPress screen where you can name your site, sign in for the first time and see the system working correctly.
It’s a really good idea at this point to go to Settings > General and make sure the URL is pointing to the correct address of the live website.
Step 5. Importing the Data into the New Database:
Now you’ll want to get the data you have entered into the development site into the live site. This step is very similar to Step 2 – only the reverse. Log into PHP MyAdmin in the new hosting environment and click Import. Select the file from your desktop and you should have a working copy of the development site.
Step 6. Fixing some errors
Sometimes during transitions you will encounter problems where the live site is looking for file uploads that reference the old development URL address. The easiest way we have found to fix these problems is to install the Search and Replace through plugins and find the old URL and replace it with the new URL.
Hope this was helpful.