Centos 6.3 MySQL WordPress = Error establishing a database connection
-
I set up a new server with its using Centos 6.3 running apache httpd and mysql as the database. All are on the same box with the same IP address. I have mysql accounts generated for wordpress with host names of localhost, 127.0.0.1, dbserver, webserver, 192.168.1.140.
wordpress@localhost
[email protected]
[email protected]
wordpress@dbserver
wordpress@webserverI can access the wordpress database from the the wordpress user account using the “mysql” command. I have used the following host configs in the wp-config.php file:
define(‘DB_HOST’, ‘192.168.140.227’);
define(‘DB_HOST’, ‘dbserver’);
define(‘DB_HOST’, ‘webserver’);
define(‘DB_HOST’, ‘1localhost’);
define(‘DB_HOST’, ‘192.168.1.140’);
define(‘DB_HOST’, ‘127.0.0.1’);I still get the “Error establishing a database connection”
Any clues what I’m missing?
- The topic ‘Centos 6.3 MySQL WordPress = Error establishing a database connection’ is closed to new replies.