Deleted first user account?

Last modified: May 18, 2009 - 01:48

If, by accident, you happen to delete the original "Administrator" account/user, you will need to recreate it.

UID1 is the 'super admin' account.

- create a new account with user name and password of your choice : this account will initially be a regular user account, to be turned into an "Administrator" account following the next step.
- go to database table "users" and change the UID of this new account to "1" - You may now login to this account as the super admin account.

if you use phpmyadmin for MySql database administration, this should only take a few seconds to fix.

user_register not enabled

The above only works if the "user_register" variable is *not* set to s:1:"0";.

UPDATE variable SET value = 's:1:"1";' WHERE name = 'user_register';
DELETE FROM cache WHERE cid = 'variables';

This will change your site so that you can follow the above instructions.

 
 

Drupal is a registered trademark of Dries Buytaert.