mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed the connection settings being incorrect
This commit is contained in:
@ -307,6 +307,7 @@ elseif($stage == "2") {
|
||||
$config['db_user']=$dbuser;
|
||||
$config['db_pass']=$dbpass;
|
||||
$config['db_name']=$dbname;
|
||||
$config['db']['extension']='mysqli';
|
||||
$sql_file = '../build.sql';
|
||||
require '../build-base.php';
|
||||
?>
|
||||
|
@ -109,7 +109,7 @@ foreach ($filelist as $file) {
|
||||
|
||||
if ($line[0] != '#') {
|
||||
if ($config['db']['extension'] == 'mysqli') {
|
||||
$update = mysqli_query($database_link, $line);
|
||||
$update = mysqli_query($connection, $line);
|
||||
}
|
||||
else {
|
||||
$update = mysql_query($line);
|
||||
@ -118,7 +118,7 @@ foreach ($filelist as $file) {
|
||||
$err++;
|
||||
if ($debug) {
|
||||
if ($config['db']['extension'] == 'mysqli') {
|
||||
echo mysqli_error($database_link)."\n";
|
||||
echo mysqli_error($connection)."\n";
|
||||
}
|
||||
else {
|
||||
echo mysql_error()."\n";
|
||||
|
Reference in New Issue
Block a user