mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX #2660: Don't try and connect to the MySQL server just to see if it's there, without a username/password.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@80238 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8e9ae1d26c
commit
3a7e2f9f2c
@ -132,10 +132,8 @@ class InstallRequirements {
|
|||||||
*/
|
*/
|
||||||
function checkdatabase($databaseConfig) {
|
function checkdatabase($databaseConfig) {
|
||||||
if($this->requireFunction('mysql_connect', array("PHP Configuration", "MySQL support", "MySQL support not included in PHP."))) {
|
if($this->requireFunction('mysql_connect', array("PHP Configuration", "MySQL support", "MySQL support not included in PHP."))) {
|
||||||
$this->requireMySQLServer($databaseConfig['server'], array("MySQL Configuration", "Does the server exist",
|
|
||||||
"Can't find the a MySQL server on '$databaseConfig[server]'", $databaseConfig['server']));
|
|
||||||
if($this->requireMysqlConnection($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password'],
|
if($this->requireMysqlConnection($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password'],
|
||||||
array("MySQL Configuration", "Are the access credentials correct", "That username/password doesn't work"))) {
|
array("MySQL Configuration", "Can I access the server with the given credentials?", "That username/password doesn't work"))) {
|
||||||
@$this->requireMySQLVersion("4.1", array("MySQL Configuration", "MySQL version at least 4.1", "MySQL version 4.1 is required, you only have ", "MySQL " . mysql_get_server_info()));
|
@$this->requireMySQLVersion("4.1", array("MySQL Configuration", "MySQL version at least 4.1", "MySQL version 4.1 is required, you only have ", "MySQL " . mysql_get_server_info()));
|
||||||
}
|
}
|
||||||
$this->requireDatabaseOrCreatePermissions($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password'], $databaseConfig['database'],
|
$this->requireDatabaseOrCreatePermissions($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password'], $databaseConfig['database'],
|
||||||
|
Loading…
Reference in New Issue
Block a user