ENH: Some webhosters require username/password credentials to test for

existing DB server
This commit is contained in:
dompie 2012-01-11 16:05:19 +01:00
parent ccbcb386e7
commit 3c09e9dfc4

View File

@ -29,7 +29,7 @@ class MySQLDatabaseConfigurationHelper implements DatabaseConfigurationHelper {
public function requireDatabaseServer($databaseConfig) {
$success = false;
$error = '';
$conn = @mysql_connect($databaseConfig['server'], null, null);
$conn = @mysql_connect($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']);
if($conn || mysql_errno() < 2000) {
$success = true;
} else {