1
dreamgear
How can I reset my xoops admin password ?
  • 2004/8/4 3:19

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I did search for the answer, as it this must have been asked before, but I can't find it.

I do have phpMyAdmin access. I've just forgotten a password ...

2
dreamgear
Re: How can I reset my xoops admin password ?
  • 2004/8/4 3:33

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I've worked it out, fwiw. Let me know if I should post the answer.

3
zarick
Re: How can I reset my xoops admin password ?
  • 2004/8/19 8:20

  • zarick

  • Just popping in

  • Posts: 1

  • Since: 2004/8/19


A stupid but straghtforward ans:

# get the md5 pass for ur admin account
# make a small php script
# filename: printmd5password.php
echo md5("newPassword");
?>

# at your shell, run the script.
$ php -f printmd5password.php
# the script will print our the 'newPassword' with md5 hashed

# use MySQL to update the 'admin' password
$ MySQL -u root -p
< enter your mysql's root acct password

# you have login the MySQL client.
# select the database which is used by ur XOOPS installation
> use xoops
# run a SQL statment to update/overwrite ur admin password
> update xoops_users set pass='XBADWF#$#@' where uid='1';

# note, the pass='' should match what output from the php
# script above.
# and uid=1 means the first record in the table xoops_users
# which is usually the admin account ur've created

4
Dave_L
Re: How can I reset my xoops admin password ?
  • 2004/8/19 11:23

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Or run the query:

UPDATE xoops_users SET pass=MD5('newPassword') WHERE uid=1

(Be careful not to omit the WHERE clause.)

Login

Who's Online

197 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits