If you have forgotten your WordPress administrator password, there are several ways to set a new one, depending on whether you have access to the email address associated with your account, the hosting control panel or SSH.
1. New password via email
On the login page (pelda.hu/wp-admin or pelda.hu/wp-login.php), click on the ‘Forgotten your password?’ link and enter your username or the email address associated with your account. WordPress will send you a link that you can use to set a new password. The link is only valid for a limited time.
If you do not receive the email, please check your spam folder; we have a separate article explaining in more detail why some emails end up in the spam folder. If the website isn’t sending any emails at all, you won’t receive the password reset email either: in this case, one of the methods below should help, and it’s worth setting up email sending using an SMTP plugin.
2. WP Toolkit (cPanel)
On our WordPress and cPanel hosting plans, you can access the control panel or set a new password in just a few clicks via the WP Toolkit interface:
- Open the ‘WordPress Management’ item in the left-hand menu of cPanel, and open the website’s details page using the arrow at the start of the row.
- Click the ‘Log in’ button: the WordPress control panel will open in a new tab without requiring a password, and there, on the ‘Users › Profile’ page, you can set a new password by clicking the ‘Set new password’ button.
- You can change your administrator password without logging into the control panel: click on the ‘Settings’ link next to the ‘Log in’ button, enter your new password in the ‘New password’ field (or generate one using the ‘Generate’ button), and click on the ‘Change’ button.
The steps are illustrated with images and a video in the article on logging into the WordPress admin panel.
3. Changing your password in phpMyAdmin
If none of the above methods work, the password can also be changed in the database:
- In cPanel, open the phpMyAdmin interface and select your WordPress database (its name is shown in the
DB_NAMEfile on thewp-config.phpline). - Open the
wp_userstable (the prefix may vary, for examplewpx7_users) and click the ‘Edit’ button in the user’s row. - In the
user_passfield, select ‘MD5’ from the ‘Function’ column, enter the new password in the ‘Value’ field, then save.
The next time you log in, WordPress will automatically replace the MD5 hash with a password hash using stronger encryption.
4. WP-CLI (SSH)
If you have SSH access, run the following in your website folder:
wp user list --role=administrator
wp user update admin --user_pass='UjErosJelszo!2026'
If you do not have a valid administrator account, you can create a new one:
wp user create ujadmin nev@pelda.hu --role=administrator
An article on the basics of WP-CLI discusses how to reinstall WordPress using WP-CLI.
After logging in
Check the ‘Users’ menu to ensure there are no unknown administrator accounts, and change the password wherever you have used it. For future protection, please refer to the article summarising basic WordPress security settings, which covers two-factor authentication and strong passwords.