I can’t get WordPress to connect to the database using WP v2.0.2, MySQL 5.0.19-nt, PHP 5.1.2, and Apache 2.0.55.
I get the wordpress error page “Error establishing a database connection” when trying to run the install script.
I can connect to the wordpress database using the exact username and pw from the config through the mysql command line client and through a test script using the mysqli functions:
$mysqli = new mysqli('localhost','wordpress','wordpress');
$mysqli->select_db('wordpress');
$result = $mysqli->query("SELECT * FROM mytest");
I have also tried disabling mysql strict mode with no effect.
I don’t see any errors in the apache 2 error log.
Any suggestions?