Skip to content
Snippets Groups Projects
Commit 5aec26a3 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Fix MySQL install, bug fix for issue 132

parent a6e18e0b
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,7 @@ class OC_Setup {
return $error;
}
private static function setupMySQLDatabase($dbhost, $dbuser, $dbpass, $dbtableprefix, $username) {
private static function setupMySQLDatabase($dbhost, $dbuser, $dbpass, $dbname, $dbtableprefix, $username) {
//check if the database user has admin right
$connection = @mysql_connect($dbhost, $dbuser, $dbpass);
if(!$connection) {
......@@ -218,7 +218,7 @@ class OC_Setup {
$dbusername=substr('oc_'.$username, 0, 16);
if($dbusername!=$oldUser) {
//hash the password so we don't need to store the admin config in the config file
$dbpassword=md5(time().$password);
$dbpassword=md5(time().$dbpass);
self::createDBUser($dbusername, $dbpassword, $connection);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment