Setting up a new course as admin user

Setting up a new course as admin user

by Marcus Hughes -
Number of replies: 2
Has any one experienced the problem of Admin being deleted or somehow corrupted. I have logged on as Admin and the create course files don't appear to exist. Should our IT bloke access the server directly and reinstall Moodle?
Average of ratings: -
In reply to Marcus Hughes

Re: Setting up a new course as admin user

by Mark Hughes -

If you have access to mySQL admin, you can find the hash for the admin password (mdl_users uid=1 I believe) and replace it with a known one. 

Create a new user and assign them a known password. 
Find the hash for the password you just created and paste it over the hash of the admin password. 

If you password was rewritten or somehow corrupted, it should give access back to you.

Good luck!
Mark

In reply to Mark Hughes

Re: Setting up a new course as admin user

by Marcus Hughes -
Thanks Mark
We were able to create a new admin account. It would seem that using my account as a teacher and as an admin did some damage somewhere. Perhaps it could see two accounts with the same e-mail address and decided to drop the user level to the lower, maybe?