2017-02-12, 04:00 PM
Hi there
In a shared hosting environment, I backuped via CPanel the home-directory and the MySQL-database.
After complete reset of the shared hosting account, I restored both files via CPanel.
When I go to www.domain.com/index.php, it shows:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:0 -Query:[READ] Unable to select database
In the CPanel phpmyadmin and Mysqldatabases the database is shown correctly.
inc/config.php:
$config['database']['type'] = 'mysqli';
$config['database']['database'] = 'Name as shown in CPanel -Mysqldatabases ';
$config['database']['table_prefix'] = 'same prefix as above _';
$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'generated new user with all privileges';
$config['database']['password'] = 'password from above';
maybe there is a better/correct way to restore a backup?
any hints?
In a shared hosting environment, I backuped via CPanel the home-directory and the MySQL-database.
After complete reset of the shared hosting account, I restored both files via CPanel.
When I go to www.domain.com/index.php, it shows:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:0 -Query:[READ] Unable to select database
In the CPanel phpmyadmin and Mysqldatabases the database is shown correctly.
inc/config.php:
$config['database']['type'] = 'mysqli';
$config['database']['database'] = 'Name as shown in CPanel -Mysqldatabases ';
$config['database']['table_prefix'] = 'same prefix as above _';
$config['database']['hostname'] = 'localhost';
$config['database']['username'] = 'generated new user with all privileges';
$config['database']['password'] = 'password from above';
maybe there is a better/correct way to restore a backup?
any hints?