mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX Fixed MySQL connection in installer not detecting incorrect credentials (from r98760)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112096 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
42144c288d
commit
7363fe54a5
@ -620,7 +620,7 @@ class InstallRequirements {
|
|||||||
|
|
||||||
if($databaseConfig['type'] == 'MySQLDatabase') {
|
if($databaseConfig['type'] == 'MySQLDatabase') {
|
||||||
$this->dbConn = $conn = @mysql_connect($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']);
|
$this->dbConn = $conn = @mysql_connect($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']);
|
||||||
if($conn || mysql_errno() < 2000) {
|
if($conn) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
$testDetails[2] .= ": " . mysql_error();
|
$testDetails[2] .= ": " . mysql_error();
|
||||||
|
Loading…
Reference in New Issue
Block a user