Pandora Console Error DB-001

Cannot connect with Database, please check your database setup in the ./include/config.php file and read documentation.

Probably any of your user/database/hostname values are incorrect or database is not running.


MySQL ERROR: '. mysql_error().'
 
'); } mysql_select_db($config["dbname"]); if($result2=mysql_query("SELECT * FROM tconfig")){ while ($row2=mysql_fetch_array($result2)){ switch ($row2["token"]) { case "language_code": $config["language"]=$row2["value"]; break; case "block_size": $config["block_size"]=$row2["value"]; break; case "days_purge": $config["days_purge"]=$row2["value"]; break; case "days_compact": $config["days_compact"]=$row2["value"]; break; case "graph_res": $config["graph_res"]=$row2["value"]; break; case "step_compact": $config["step_compact"]=$row2["value"]; break; case "style": $config["style"]=$row2["value"]; break; case "show_unknown": $config["show_unknown"] = $row2["value"]; break; case "show_lastalerts": $config["show_lastalerts"] = $row2["value"]; break; case "remote_config": $config["remote_config"] = $row2["value"]; break; } } } else { exit ('Pandora FMS Error

Pandora Console Error DB-002

Cannot load configuration variables. Please check your database setup in the ./include/config.php file and read documentation.

Probably database schema is created but there are no data inside it or you have a problem with DB access credentials.

'); } if ($config["language"] == 'ast_es') { $help_code='ast'; } else $help_code = substr($config["language"],0,2); ?>