Title: database error
Last modified: August 19, 2016

---

# database error

 *  Resolved [iamstatic](https://wordpress.org/support/users/iamstatic/)
 * (@iamstatic)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-20/)
 * i am having a hell of a time trying to get the database connection to work.
 * i am on an alternate domain with media temple on a grid-service…
 * my info:
    database name: db33428_obscura_blog database user: db33428_obscura 
   database password: xxxxxxxx internal hostname: internal-db.s33428.gridserver.
   com external hostname: external-db.s33428.gridserver.com
 * this is what i have:
    define(‘DB_NAME’, ‘db33428_obscura_blog’); define(‘DB_USER’,‘
   db33428_obscura’); define(‘DB_PASSWORD’, ‘xxxxxx’); define(‘DB_HOST’, ‘localhost’);
 * *if i change host to ‘internal-db.s33428.gridserver.com’ it directs me to ‘[http://localhost:8888/&#8217](http://localhost:8888/&#8217);
 * *if i change host to the external link i get the error establishing a database
   connection.
 * *i feel like this has to do with it being an alternate domain in media temple….
   i have a blog in the main domain and the connection works fine. media temple 
   tells me its fine just use the internal host…yet that doesnt work.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-20/#post-761215)
 * I would have guessed that internal-db.s33428.gridserver.com should work. Did 
   you try the external value for DB_HOST?
 * What does it show for ‘server’ in [phpMyAdmin](http://codex.wordpress.org/phpMyAdmin)?
   Sometimes that can be a clue.
 *  Thread Starter [iamstatic](https://wordpress.org/support/users/iamstatic/)
 * (@iamstatic)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-20/#post-761227)
 * that was a crazy problem….
 * i figured it out. it kept directing me to local host because i installed it locally
   first for testing and tried to import that same database.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘database error’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [iamstatic](https://wordpress.org/support/users/iamstatic/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-20/#post-761227)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
