Error establishing a database connection
-
I’m getting the “Error establishing a database connection” error in Step 6 of “The Famous 5-Minute Install.” I do have a database set up called “wordpress” and I can connect to it just fine via ODBC and run whatever queries I need to. So, I know the connect info (database name, username, pwd, etc.) is all fine, and it matches exactly what’s in the wp-config.php file. Also, I can see the changes reflected on the error page when I make changes to wp-config.php, so I know it’s reading the correct file.
What I suspect may be the problem is that we’re running two versions of mySQL on the server. One is version 4.something for Plesk, and I installed 5.0 this morning. 5.0 runs under a separate service name and on port 3309 (instead of the default 3306, which Plesk’s 4.something is running on), and as mentioned above I can connect to it just fine via ODBC.
I am specifying the port in the DB_HOST connect string:
define(‘DB_HOST’, ‘localhost:3309’);Any ideas why WP can’t connect to the database?
- The topic ‘Error establishing a database connection’ is closed to new replies.