Title: Setup WordPress database error in MySQL OpenShift
Last modified: August 22, 2016

---

# Setup WordPress database error in MySQL OpenShift

 *  [Na Nguyen](https://wordpress.org/support/users/naenter/)
 * (@naenter)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/setup-wordpress-database-error-in-mysql-openshift/)
 * Sorry for my bad English !
    I’m using OpenShift to create a MySQL host database
   for my wordpress website ( in another host ) , but when i config the wp-config.
   php file and type the right information in OpenShift , the WordPress can’t connect
   to the database ( Error establishing a database connection ) I’m sure all the
   information config is right , but i don’t know why my website can’t connect to
   the OpenShift MySQL database . Do you have any ideas for config wordpress to 
   connect with OpenShift MySQL ? Thanks you so much !

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

 *  [Michael](https://wordpress.org/support/users/mikeyhoward1977/)
 * (@mikeyhoward1977)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/setup-wordpress-database-error-in-mysql-openshift/#post-5408026)
 * So your MySQL database is on a different server to your WordPress install?
 * I presume the MySQL DB allows remote connections? I believe the default is not
   to.
 * Also, for more information as to why it is not connecting, [enable debugging](http://codex.wordpress.org/Debugging_in_WordPress).
   You can then review the information in the /wp-content/debug.log file which should
   point you in the right direction.
 *  Thread Starter [Na Nguyen](https://wordpress.org/support/users/naenter/)
 * (@naenter)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/setup-wordpress-database-error-in-mysql-openshift/#post-5408047)
 * I mean I want to use OpenShift to host my SQL DATABASE , and i redirect connect
   my website to it , I think’t it not impossible because the SQL server database
   in OpenShift may only support website hosted in it .

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

The topic ‘Setup WordPress database error in MySQL OpenShift’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Na Nguyen](https://wordpress.org/support/users/naenter/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/setup-wordpress-database-error-in-mysql-openshift/#post-5408047)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
