alandrover
Member
Posted 6 months ago #
Am I a WordPress user, I ask myself? After a longish absence and a change of password, I seem to exist as far as this WordPress site is concerned, but according to my admin login page, my username does not exist, nor if I ask for a new password, does my e-mail address! So I can't access my own site admin! Can anyone help, please?
Thanks!
alandrover (I think!)
I would change the password in PHPMyAdmin. Here's a link on resetting your WordPress password. I hope it helps!
http://codex.wordpress.org/Resetting_Your_Password
alandrover
Member
Posted 6 months ago #
Cheers for this, Tim! I actually asked my web host to reset the password as for some reason I have no access to PHPmyadmin. This they did and sent me the registered username and a new password. So I can get in now, but the rub is that when my site was recently hacked, the hacker changed my username to his. I cannot chnage this back in my profile - is there any way it can be restored to the original?
Alan.
Hey Alan,
I've never had to change my usernames in WordPress, but I pulled up my Dev site and you should be able to change the username in the wp_users table in your WordPress database.
I hope this helps!
alandrover
Member
Posted 6 months ago #
OK, Tim thanks - alternatively, could I create myself as a new user with administrator rights, then delete the rogue administrator??
Alan
You can do that as well. You'll log in with your existing user, and create a new admin account. Then you'll log out, and re-login using the new user. Then delete the old user. It'll ask you if you want to remove the posts by the old user or re-assign them to another user.
I tested this on my dev site to be sure.
alandrover
Member
Posted 6 months ago #
Thanks for all your advice, Tim! I managed to make the changes in phpadmin in the end so everything is back to normal again! I've tightened up on security, so hopefully I shouldn't have the same problem again!
Regards,
Alan.
Hey Alan,
I'm glad I could assist you. Since WordPress is so widely used it's extremely important to make sure it stays up to date and you are mindful of your passwords. I always recommend to people to make sure their passwords are non-dictionary alpha-numeric passwords. And it's best practice to change the Admin user so the username isn't admin either.