Knowledge Base Article

After Moodle upgrade there is an error

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.



Rating

Please indicate if this article was helpful for you.

rating :  2.5 from 5
views :  360
votes :  2

Valid XHTML 1.0 Strict Valid CSS!