Can't log in Admin Account

Can't log in Admin Account

by Jennifer Kim -
Number of replies: 1

Hello. I'm trying to log in my admin account, but somehow I can't log in with admin ID. It seemed like that it has been deleted the account. Do you have any ideas how I can log in with admin account in this situation? I appreciate your help. I'm looking forward to hearing from you very soon. Thank you for your help.

Average of ratings: -
In reply to Jennifer Kim

Re: Can't log in Admin Account

by Ambrish Tiwari -

Hi Jennifer,


If you have the access or credential of database you can do a manual entry in mdl_user table and log in  to site. You will get you Moodle database credentials under Moodle root dir in config.php Also you have to check mdl_config table, it has a row as siteadmin who's value is the id form the mdl_user table. It specifies which user is a site admin. So if  the user already exist in user table, just change the siteadmin value and you should be able to log in.


Ambrish Tiwari