Private GIT

Skip to content
Snippets Groups Projects
Commit 919ad194 authored by Mathieu Parent's avatar Mathieu Parent
Browse files

Fix generateSqlLite with a non-default MySQL port

parent e8ce660f
Branches
Tags
No related merge requests found
......@@ -25,10 +25,11 @@ if (is_file($dbfilename)) {
try {
$mysql_host = $conf_centreon["hostCentreon"];
$mysql_port = $conf_centreon["port"];
$mysql_database = $conf_centreon["db"];
$mysql_user = $conf_centreon["user"];
$mysql_password = $conf_centreon["password"];
$db_centreon = new PDO("mysql:dbname=pdo;host=" . $mysql_host . ";dbname=" . $mysql_database,
$db_centreon = new PDO("mysql:dbname=pdo;host=" . $mysql_host . ";port=" . $mysql_port . ";dbname=" . $mysql_database,
$mysql_user, $mysql_password);
$db_centreon->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment