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"]); require_once ('functions_db.php'); $configs = get_db_all_rows_in_table ('tconfig'); if (sizeof ($configs) == 0) { 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.

'); } foreach ($configs as $c) { switch ($c["token"]) { case "language_code": $config["language"] = $c["value"]; break; case "block_size": $config["block_size"] = $c["value"]; break; case "days_purge": $config["days_purge"] = $c["value"]; break; case "days_compact": $config["days_compact"] = $c["value"]; break; case "graph_res": $config["graph_res"] = $c["value"]; break; case "step_compact": $config["step_compact"] = $c["value"]; break; case "style": $config["style"] = $c["value"]; break; case "show_unknown": $config["show_unknown"] = $c["value"]; break; case "show_lastalerts": $config["show_lastalerts"] = $c["value"]; break; case "remote_config": $config["remote_config"] = $c["value"]; break; case "graph_color1": $config["graph_color1"] = $c["value"]; break; case "graph_color2": $config["graph_color2"] = $c["value"]; break; case "graph_color3": $config["graph_color3"] = $c["value"]; break; case "sla_period": $config["sla_period"] = $c["value"]; break; } } if ($config["language"] == 'ast_es') { $help_code = 'ast'; } else { $help_code = substr ($config["language"], 0, 2); } ?>