So, this week, for some reason, the site reported
‘Error Establishing a Database Connection’
Searching the web I found out that wordpress, from version 2.3.1, has a debug feature. In wp-config.php
simply add define('WP_DEBUG', true);
. Once I had done this I got a nice little error telling me exactly what was wrong.
I like things that are that easy to track down. If only db2 reported verbose errors instead of the SQL-STATE codes.