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.
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