Moving site to new server: error establishing database connection.
-
I am moving my site to a completely different server with a different url. I’m using godaddy for linux hosting.
I backed up my site and my database onto my harddrive.
I changed my wordpress to my new url.
I uploaded my old site into a subdirectory.
I created a new database and uploaded my old database. (I also tried with a blank database and it did not work)
I updated wp-config.php to match my new settings.
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘redacted‘);/** MySQL database username */
define(‘DB_USER’, ‘redacted‘);/** MySQL database password */
define(‘DB_PASSWORD’, ‘redacted‘);/** MySQL hostname */
define(‘DB_HOST’, ‘redacted‘);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);and I cannot get the database to connect. I’ve also tried changing hostname to the IP and localhost.
- The topic ‘Moving site to new server: error establishing database connection.’ is closed to new replies.