Title: Problem Creating Dev Environment
Last modified: August 19, 2016

---

# Problem Creating Dev Environment

 *  Resolved [jnickles](https://wordpress.org/support/users/jnickles/)
 * (@jnickles)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-creating-dev-environment/)
 * I have created a local dev environment on my Windows machine using the basic 
   method described [in this article](http://www.dountsis.com/articles/web-developmemt/setup-a-development-environment-for-your-wordpress-site.php).
 * I get WP 3.0 up and running as a new installation. I can open the new WP site
   and it works fine. I then go to phpMyAdmin and restore my production WP database
   from a backup sql script created using the backup plugin. The restore succeeds
   and I can see data in the tables when I browse them in phpMyAdmin.
 * However, after the restore, I can no longer access WordPress. I get an error 
   saying it cannot connect to the database. Why would the restore cause this to
   happen? I’d greatly appreciate any help.

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

 *  [Christopher Spires](https://wordpress.org/support/users/boda1982/)
 * (@boda1982)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-creating-dev-environment/#post-1679673)
 * Have you double checked the wp-config.php file to make sure the database settings
   are accurate? If needed just give the database a new username and password and
   plug that into the config file.
 *  Thread Starter [jnickles](https://wordpress.org/support/users/jnickles/)
 * (@jnickles)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-creating-dev-environment/#post-1679848)
 * I figured it out. In Step 4 in the article I referred to above, the author said
   to delete the line from the sql script that set the siteurl in wp_options before
   restoring. This is incorrect because the sql script drops the existing wp_options
   table before it restores a new one. This leaves wp_options without a siteurl 
   setting. I just edited the siteurl in the sql script before I restored and this
   fixed it!
 *  [iamdestroy](https://wordpress.org/support/users/iamdestroy/)
 * (@iamdestroy)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/problem-creating-dev-environment/#post-1680095)
 * i am having the same problem. when i do the restore (i amended the line about
   siteurl as you described above) and i am still returning nothing. i would greatly
   appreciate any help you can give me. thanks.

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

The topic ‘Problem Creating Dev Environment’ is closed to new replies.

## Tags

 * [development](https://wordpress.org/support/topic-tag/development/)
 * [environment](https://wordpress.org/support/topic-tag/environment/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [iamdestroy](https://wordpress.org/support/users/iamdestroy/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/problem-creating-dev-environment/#post-1680095)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
