Reset a WordPress password or username from cPanel
Updated 27 Nov 2026
First try the normal way: on your login page (yourdomain.co.tz/wp-login.php) press Lost your password? and use the link WordPress emails you. If the email never comes, or the admin email is an old one, use cPanel.
Set a new password in phpMyAdmin
- Open cPanel (Services › your hosting › Login to cPanel) and open phpMyAdmin.
- On the left, open your WordPress database. (Not sure which? Its name is in
wp-config.php, on theDB_NAMEline.) - Open the table ending in _users, usually
wp_users(the start may differ, for examplewpxy_users). - Find your user and press Edit.
- In the user_pass row:
- under Function, choose MD5,
- under Value, delete what is there and type your new password.
- Press Go.
Sign in with the new password. WordPress upgrades its storage to a stronger format automatically the first time you sign in.
Change the username
WordPress does not let you rename a user in its dashboard. In the same Edit screen, change user_login to the new name and press Go. Avoid admin: it is the first name attackers try.
Better: a new admin user, then remove the old one
- Sign in, open Users › Add New User, and make a new user with the Administrator role and your current email.
- Sign out, sign in as the new user.
- Delete the old user, and choose to attribute all content to the new one.
If you cannot reach the login page at all
- Too many attempts / locked out by a security plugin: in File Manager, rename that plugin's folder in
wp-content/plugins(for examplewordfencetowordfence-off), sign in, then rename it back. - The page is broken: see Show PHP errors.
Keep your site safe afterwards: see Keep your WordPress site safe.
Kwa Kiswahili
Jaribu kwanza Lost your password?. Email isipofika: cPanel › phpMyAdmin › database ya WordPress › jedwali wp_users › Edit › kwenye user_pass chagua MD5, andika password mpya, Go. Kubadilisha jina la mtumiaji: badilisha user_login.
Still need help? Open a ticket and we will reply.