Reinstalled 1.9 - courses present but passwords gone :(

Reinstalled 1.9 - courses present but passwords gone :(

by Marshal Anderson -
Number of replies: 3

I had to reinstall a copy of moodle 1.9 (because I did something stupid - can move on?) and, to my relief, the list of courses was still there - presumably in the SQL database which was untouched. However, my admin password no longer works; nor do any of the other passwords. Is there a way of doing a reinstall that won;t have this effect, or will let me set an admin password - preferably without  having to upload all the files again?


Marshal (who is in the naughty corner)

Average of ratings: -
In reply to Marshal Anderson

Re: Reinstalled 1.9 - courses present but passwords gone :(

by Ken Task -
Picture of Particularly helpful Moodlers

Trust/Hope you made a backup of the old 1.9 code folder ... or, at the very least, the config.php file contained therein.    If you did, check the config.php file contained in your backup archive for a 'password salt' line.   Copy that line to the newly installed 1.9's config.php file.   All passwords should work again then.   Somewhere around version 1.9.6 -> password salts were added.   One can find the version of Moodle in the version.php file in the code folder.

'spirit of sharing', Ken



In reply to Ken Task

Re: Reinstalled 1.9 - courses present but passwords gone :(

by Marshal Anderson -

Many thanks both, that worked - learned a lot about the SQL stuff from this smile

Marshal