notes on Moving website to new location

Moving website to new locatio


Guide to installing the old wordpress to the new location.

WordPress installed locally on your computer. Do the work on a local installation (on your computer) so that when you find the result satisfactory, you can import it into your new site.

start by importing the database into the newly setup installation.

Upload files to the domain.

Point link to current wordpress folder,

at this time you may get: Error establishing database connection

Set the wp-config.php file with the correct database name, database username, database password and MySQL hostname.

Change your old site names, old URL, etc.

The database on a GoDaddy hosting account looks different to what the wp-config file looks.

WP config file:
db name (name_blog)
db username (name_username)
db password (password)

Godaddy has the name and usename as one
db name and username (xxxxxxxx)
db password (password)

chang the config file to match godaddy

Check host name? It’s not localhost in GoDaddy, (they load database from another server.)


This is what it says on Godaddy:

Database name and username:


Friendly Name: WPBlog

Admin URL (phpMyAdmin): Visit

MySQL version:
5.0 (Direct access not allowed)

Status: Setup


The config file used to say this…
// ** MySQL settings ** //
define(‘DB_NAME’, ‘xxxxx_blog’); // The name of the database
define(‘DB_USER’, ‘xxxx’); // Your MySQL username
define(‘DB_PASSWORD’, ‘hidden’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);

define('DB_HOST', 'localhost'); // you probably won't need to change this value

You need to change the localhost name in GoDaddy.

EDIT: replace 'localhost' with '

All the old wordpress files and folders.

The config file is changed. But it’s all showing as if the blog is brand new.

Move the .sql file from your old blog to the new one,
Now you need to restore your old database

All the links in the database point to the old domain, the theme also may need to be updated.

Fix all that

change the old domain names by search and replace and import into your new site.

OR By doing a command in SQL and doing a search and replace of the old to new domains.  Then do another command to update all posts with the new domain as well.

Once that is done, you can install your theme.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s