How to Reset a vBulletin Admin Password – via Email and MySQL Database
After migrating a vBulletin forum to a new domain, it is surprisingly common to find that the administrator password suddenly stops working and standard password recovery fails. In most domain-move cases, stale cookie and board URL settings are the culprit – updating the config file and database paths usually restores login in minutes.
If you did not migrate anything and simply lost the AdminCP password, here are three reliable ways to regain access – from the built-in reset page to editing MySQL directly.
1. Standard Email Password Recovery
If the administrator email address still works and your server sends mail properly, open the built-in password reset form directly:
https://your-forum.com/login.php?do=lostpw
Enter the admin email address and follow the link sent to your inbox.
2. Change the Admin Email Address in MySQL
When you no longer have access to the original admin mailbox, open your forum database in phpMyAdmin or Adminer and locate the user table (plus your table prefix, if configured):
- Locate the admin row: usually
userid = 1, or search byusername. - Update the email field: replace the old address in the
emailcolumn with a mailbox you control and save. - Request a reset email: open
/login.php?do=lostpwagain so the reset message arrives at your new address.
3. Replace the Password Hash Directly via SQL
If outgoing email on the server is broken, you can overwrite the password hash in the user table. On vBulletin 3/4, passwords use salted double MD5 (md5(md5($password) . $salt)). Always back up the user table first, then run:
UPDATE user
SET password = MD5(CONCAT(MD5('NewStrongPassword'), 'abc')),
salt = 'abc'
WHERE userid = 1;
An even simpler trick – which also works cleanly on newer vBulletin 5+ installations using bcrypt tokens – is registering a temporary normal account with a known password and copying its password / salt (or token) values into the admin row.
Once back inside AdminCP, immediately set a fresh password through the normal user panel and verify your cookie domain settings.
