This error could be caused by any of the following:
- The database information in your config.php file is wrong (in which case your forums won't work at all.)
- The user doesn't have permission to access the database specified in config.php.
- The database doesn't exist.
- MySQL isn't accepting new connections. (The server could either be down or has reached it's maximum connections limit.)
To find out which of these is the cause of the problem, you can copy the text below and save it into a file called 'connect.php', then upload it to your forums directory and run it with a web browser.
<?php
require_once('./includes/config.php');
$db = @mysql_connect($config['MasterServer']['servername'], $config['MasterServer']['username'], $config['MasterServer']['password']) or die(mysql_error());
mysql_select_db($config['Database']['dbname'], $db);
echo "Connected sucessfully.";
?>