I have had to move servers and I have reloaded my site from a back up, but im getting this message
Cannot establish database connection. Check your database setting in configuration file. in /home/olivebranch/public_html/s/core/database/amysqli.php on line 50
When I go to line 50 I see this
*/
public function __construct($hostname, $username, $password, $database, $new_link=false) {
$connection = new mysqli($hostname, $username, $password, $database);
if ($connection->connect_error) {
$err = new AError('Cannot establish database connection to ' . $database.' using ' . $username . '@' . $hostname);
$err->toLog();
throw new AException(AC_ERR_MYSQL, 'Cannot establish database connection. Check your database setting in configuration file.');
}
I can not see what to edit
I have all the database log in details
Please help