Error Establishing Database Connection
-
When attempting to install, I navigate to:
https://<myurl>/wp-admin/install.php
and immediately get:
Error Establishing Database Connection
However, an attempt to establish a database connection manually:
$ mysql -u<wordpressuser> -h<myhostname> -p<mypassword> <databasename>
Works OK.
File wp-config.php is correct:
define(‘DB_NAME’, ‘databasename’);
/** MySQL database username */
define(‘DB_USER’, ‘wordpressuser’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘mypassword’);/** MySQL hostname */
define(‘DB_HOST’, ‘myhostname’);The only thing of note is that httpd.conf is configured to use virtual hosts, so
does not match ‘myhostname’.
Is that a problem? Anything else I’m missing?
- The topic ‘Error Establishing Database Connection’ is closed to new replies.