Title: Localhost database error caused by php safe mode
Last modified: August 20, 2016

---

# Localhost database error caused by php safe mode

 *  Resolved [Ken Dirschl](https://wordpress.org/support/users/badfun/)
 * (@badfun)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/localhost-database-error-caused-by-php-safe-mode/)
 * Hi All,
    didn’t find this anywhere in the forums so I thought I’d post in case
   someone else has this problem.
 * Just installed two new installations and absolutely could not get the database
   to connect. Tried re-installing, changing passwords, removing and re-installing
   databases, etc.
 * Finally I checked php settings in Wampserver and realised that I had inadvertantly
   turned ‘php safe mode’ on. Turned it off and all worked well.
 * wasted almost an hour.

The topic ‘Localhost database error caused by php safe mode’ is closed to new replies.

## Tags

 * [database errors](https://wordpress.org/support/topic-tag/database-errors/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [php safe mode](https://wordpress.org/support/topic-tag/php-safe-mode/)
 * [wampserver](https://wordpress.org/support/topic-tag/wampserver/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [Ken Dirschl](https://wordpress.org/support/users/badfun/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/localhost-database-error-caused-by-php-safe-mode/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
