So you’ve finished working on your local wordpress install and want to upload it to your domain. It’s quite simple but you do need to make a couple of changes in the database once the website has been moved. Steps below:
- Take a backup of your database using phpmyadmin (save as a .sql.gz)
- Create a MYSQL5 database and user on your host (note the connection settings)
- Go into phpmyadmin
- Open the table wp_options for editing
- Change the value “siteurl” to your current domain, i.e. http://www.yourdomain.com
- Change the value “home” to your current domain, i.e. http://www.yourdomain.com
- Zip up your wordpress folder
- Upload to your hosts web folder (htdocs, httpdocs, or something like that)
- Unzip the archive on your host
- Open your wp-config.php file
- Change the following settings to match that of your new host
- DB_NAME — the name of the database you created
- DB_USER — the name of the database user you created or one that has full privileges on that database.
- DB_PASSWORD — the password you chose (please don’t use any dictionary words, use a password generator or just mash the keyboard)
- DB_HOST — the hosts MYSQL server address