How can I change my admin password?


By tgeller - Posted on 19 November 2008

If for some reason the default exercise file username (admin) and password (booth) don't work, you can change them in the database itself using phpMyAdmin. (This technique is demonstrated in a video from Chapter 8, "Recovering from disasters".)

  1. Open your Drupal database with phpMyAdmin.
  2. Go to the "users" table. Click the Browse icon.
  3. For the row where uid = 1, click the Edit icon. (Note the value under the "Name" column: That's the administrator's username.)
  4. In the "pass" row, select "MD5" under the "Function" column
  5. In the same row, enter your new password under the "Value" column.
  6. At the bottom of the screen, click the "Go" button.

You should now be able to log in with that username and new password.

Tom, I have tried, at least 6 times, the method you suggest about editing the name and password for the example files, and nothing happens.

When I load the first example file, 10_01-start-backup, my screen doesn't look quite like yours does with the exercise file. Is this truly the first exercise file I should have loaded, or is this one building on one that should have been previously loaded?

Hey, Steve -- sorry to hear about the troubles you've been having. You're right that your screen won't match mine exactly just from importing the SQL files. The main reason is that we introduced graphics bit by bit throughout the course, so those graphics will be missing if you just jump in in the middle.

Everything else should work correctly, though. What else is missing in your installation?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options