Pandora FMS 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 FMS 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; default: $config[$c["token"]] = $c["value"]; } } if ($config["language"] == 'ast_es') { $help_code = 'ast'; } else { $help_code = substr ($config["language"], 0, 2); } if (! defined ('EXTENSIONS_DIR')) define ('EXTENSIONS_DIR', 'extensions'); require_once ('functions_extensions.php'); $config['extensions'] = get_extensions (); require_once ('streams.php'); require_once ('gettext.php'); $l10n = NULL; if (file_exists ('./include/languages/'.$config["language"].'.mo')) { $l10n = new gettext_reader (new CachedFileReader ('./include/languages/'.$config["language"].'.mo')); $l10n->load_tables(); } if (! isset ($config['date_format'])) { $config['date_format'] = 'F j, Y, g:i a'; } if (isset ($config['homeurl']) && $config['homeurl'][0] != '/') { $config['homeurl'] = '/'.$config['homeurl']; } // If first time, make the trap2agent disable in DB if (!isset($config["trap2agent"])){ $config["trap2agent"] = 0; process_sql ("INSERT INTO tconfig (token,value) VALUES ('trap2agent', 0)"); } if (!isset ($config["sla_period"]) || empty ($config["sla_period"])) { // Default period (in secs) for auto SLA calculation (for monitors) $config["sla_period"] = 604800; } ?>