Title: Pointing to a different database
Last modified: August 19, 2016

---

# Pointing to a different database

 *  [valuxes](https://wordpress.org/support/users/valuxes/)
 * (@valuxes)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/pointing-to-a-different-database/)
 * I have a “PROD” WP site with its PROD_DB.
 * I created a separate “DEV” site with its own DEV_DB.
 * I want to point my DEV site to PROD_DB to see how it looks with real data (other
   option is to export and import the data). Is this possible? I changed my DEV 
   wp_config.php to point to PROD_DB but nothing displays.

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/pointing-to-a-different-database/#post-948941)
 * > I changed my DEV wp_config.php to point to PROD_DB but nothing displays.
 * thats how its done.
 * are the 2 pair of urls the same?
 * [http://www.tamba2.org.uk/wordpress/site-url/](http://www.tamba2.org.uk/wordpress/site-url/)
 *  Thread Starter [valuxes](https://wordpress.org/support/users/valuxes/)
 * (@valuxes)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/pointing-to-a-different-database/#post-948952)
 * PROD points to:
 * [http://www.example.com](http://www.example.com)
 * and DEV points to:
 * [http://www.example.com/dev](http://www.example.com/dev)
 * Going thru your tutorial about changing the site_url and home values: in my case,
   PROD has [http://www.example.com](http://www.example.com) for both values and
   DEV has [http://www.example.com/dev](http://www.example.com/dev) for both values.
 * Would I need do change the DEV site_url and home to [http://www.example.com](http://www.example.com)?
 * Not sure I understand, but what do these two parameters have to do with accessing
   the database?
 * Thanks for any help!
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/pointing-to-a-different-database/#post-949076)
 * becauae this:
 * > I changed my DEV wp_config.php to point to PROD_DB but nothing displays.
 * tells us that there isnt a databse connection issue
 * WordPress give well known error messages when it doesnt properly connect to the
   database.
 *  Thread Starter [valuxes](https://wordpress.org/support/users/valuxes/)
 * (@valuxes)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/pointing-to-a-different-database/#post-949176)
 * Hi whooami,
 * makes sense.
 * OK, trying to understand further: if there is no DB connection issue, why should
   I be required to change the site_url and home links?
 * To recap, my DEV WP works with DEV_DB but not when I change DEV config.php to
   point to PROD_DB. My DEV site_url and home links remain the same (because I am
   still running my.example.com/dev), I only changed where my DB is pointing to.
 * I am most puzzled.
 *  [squeeky](https://wordpress.org/support/users/squeeky/)
 * (@squeeky)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/pointing-to-a-different-database/#post-949192)
 * please excuse this “shot in the dark” (as i’m not too smart) – could there be
   some interference with the cache ?

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

The topic ‘Pointing to a different database’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [dev](https://wordpress.org/support/topic-tag/dev/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 5 replies
 * 3 participants
 * Last reply from: [squeeky](https://wordpress.org/support/users/squeeky/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/pointing-to-a-different-database/#post-949192)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
