Changing Admin password manually

Changing Admin password manually

by David Carter -
Number of replies: 3
We had edited the edit profile page and tried to change the admin password and gained an error. So I went to the MySQL table and changed the admin password in the database. Now no passwords seem to work for the admin user. Any ideas on how to change without having to start again??

Now Moodle has stopped "talking"to the database.  How do you run config.php without re-configuring your whole site?

Thanks
David

Average of ratings: -
In reply to David Carter

Re: Changing Admin password manually

by Richard Hewitt -

Did you use a plain text password or the md5 password that moodle uses?

If you need to know the md5 password, create a short file like:

<?php  echo md5("password") ?>

then use the command "php < file_name" where file_name is the name of the file you created.

Richard

In reply to Richard Hewitt

Re: Changing Admin password manually

by Timothy Takemoto -
Alternativelly copy the encoded password from another user which you know (The password for guest is I believe guest).
Tim