Lets Say a wordpress website on a local machine is ready and to be moved on live server,What will we do ??
First of all take backup of both database and source code in your PC
- Then upload the source code to live server
- Create Database
-Now before importing your database file make some correction in the file
Find table "wp_options"
in this table find option_name = 'siteurl' and option_name='home'
Edit the values of both the records to your live server links
update the table
That's it.
Now you are half-way from task completion
Database related work is completed now you need to configure the " wp-config.php " File
With
/** The name of the database for WordPress */
define('DB_NAME', 'YOUR_DB_NAME');
/** MySQL database username */
define('DB_USER', 'YOUR_DB_USER');
/** MySQL database password */
define('DB_PASSWORD', 'YOUR_DB_USER_PASSWORD');
/** MySQL hostname */
define('DB_HOST', 'YOURHOST'); //by default localhost
save the file and All done
Thanks
Cheers
No comments:
Post a Comment