In this case first check if the database details have been correctly specified in config.php. For this purpose Open the File Manager in your cPanel and navigate to the config.php file. The file should reside in the main Moodle folder. Once you find it, click on it and from the top menu choose Edit.
Look through it and find the directives that describe the database details:
$CFG->dbtype = 'mysql' ;
$CFG->dbhost = 'localhost' ;
$CFG->dbname = 'database' ;
$CFG->dbuser = 'username' ;
$CFG->dbpass = 'password' ;
Make sure they are correct. You can add a new user to your database through the MySQL Databases section in the cPanel. Please click here to find more information on how to manage your databases.
If this solution does not help, perhaps the database got corrupted during the upgrade process. In case you upgraded the Moodle through Fantastico, please click here to see how to restore a Fantastico backup.
Otherwise, you have to restore the Moodle from your local backup (if any) or open a "backup restore" ticket. To do so, go to:
Customers' Area --> Get Support --> Report a hosting related issue --> Back-up restore
Note that additional fees are applied to that service.
You need help with an application? hostlantern is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!