Title: Database connection Errors &#8211; at wits end
Last modified: August 30, 2016

---

# Database connection Errors – at wits end

 *  Resolved [wadecourtney](https://wordpress.org/support/users/wadecourtney/)
 * (@wadecourtney)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/database-connection-errors-at-wits-end/)
 * Greetings,
 * I currently have wordpress installed on a linux server (WP, MySQL, PHP). When
   I try to access the database locally with a fully qualified domain name as DB_HOST,
   I have no issues.
 * I also have wordpress installed on a remote server (WP, PHP, no DB). with the
   wp-config pointing at the DB on the local installation with the same credentials.
 * I have enabled access for the db user and I have executed the following command
   on the DB server:
 * `setsebool -P httpd_can_network_connect=1`
 * Question, does this command need to be executed on both ends, or only on the 
   DB server.
 * When using telnet, I can connect bi-directionally with both servers.
 * when I try to access the blog from the remote server, I get a database connection
   error.
 * I am at my wits end. Does anyone have any advice or other places to check?
 * Thanks,
 * Wade

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

 *  Thread Starter [wadecourtney](https://wordpress.org/support/users/wadecourtney/)
 * (@wadecourtney)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/database-connection-errors-at-wits-end/#post-6405422)
 * UPDATE:
 * I am able to connect to the remote mysql server via the linux command line.
 * Still not able to connect to the server via wordpress.
 *  Thread Starter [wadecourtney](https://wordpress.org/support/users/wadecourtney/)
 * (@wadecourtney)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/database-connection-errors-at-wits-end/#post-6405428)
 * Resolved
 * This command needed to be run on both servers
 * setsebool -P httpd_can_network_connect=1

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

The topic ‘Database connection Errors – at wits end’ is closed to new replies.

## Tags

 * [connection errors](https://wordpress.org/support/topic-tag/connection-errors/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 1 participant
 * Last reply from: [wadecourtney](https://wordpress.org/support/users/wadecourtney/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/database-connection-errors-at-wits-end/#post-6405428)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
