Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By derek_lee on
Being totally careless and probably drunk, I blocked my own account (which is the only one with admin features).
How do I unblock myself when I can't even log in as admin?
After you've stopped laughing I would appreciate some help.
Thanks
Comments
This sounds dagerously
This sounds dagerously fishy. But if it's indeed your site, you can edit the MySQL table manually. (table 'users')
I've stopped laughing..
recommend you try navicat to edit the users table..
it's a freebie for 30 days trial...I find it very useful as I'm not very sql or php savvy. Similar to myphp_admin and others...but more user friendly for thickos like me.
http://www.navicat.com
J
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
You can use the mysql client
You can use the mysql client or phpMyAdmin to set the password as follows:
update users set pass = MD5('new password') where uid = 1;
See http://bfl.rctek.com/guides/?guide=md5#changepma
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.
--
Drupal services
My Drupal services
correct problem?
I thought the problem was user's status was changed from 'active' to 'blocked'?
Oops, yes. Well then it
Oops, yes.
Well then it is:
update user set status = 1 where uid = 1;
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.
--
Drupal services
My Drupal services
Hmmmm. This info should
Hmmmm. This info should probably go in the handbook, the logical place would be in administration.... perhaps troublshooting, but there is no user management section.
I'll see if I can think of something specific by this weekend to propose and do, perhaps other people can come up with a better idea.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Me too
Thank you for being silly ahead of me so this thread was waiting with the answer I needed :)
Added to troubleshooting
Added to troubleshooting section for future reference
http://drupal.org/node/52013
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
WELL :)
It happened that i .... mmmm... forgot the admin pass. And then i ran an sql query and it worked. so, thanx guys, i was thinking of running the querry but didnt know if it will work.
thnx .