"Error establishing a database connection" any way of getting more info?
-
I’m getting the above on a WP install, and wp-admin invites me to repair some tables.
mysqlcheck finds no issues with tables, and I can connect fine using the mysql prompt.I’ve put a test script in the documentroot of the wp site:
<?PHP $db = @mysql_connect('mysql', '<username>', '<password>'); if (!$db) echo ":("; else echo ":)";
And when I run that I get a happy face; the problem is somewhere in WordPress’ connection.
Is there any mechanism for retrieving more detailled information from WordPress here? I can’t find mention of any, and would assume it to be fairly obvious in any case.
I’ve tried resetting the password with OLD_PASSWORD(), and every hostname I can think of that points at the db server; each of them work on the cli, in my php script, and not in wordpress.
- The topic ‘"Error establishing a database connection" any way of getting more info?’ is closed to new replies.