By email
On yourdomain/wp-login.php, click Lost your password? and enter the admin email.
Via phpMyAdmin
- Open the site’s database in phpMyAdmin.
- In the
wp_userstable, click Edit on your user’s row. - Enter the new password in
user_passand choose MD5 in the “Function” column. - Click Go and log in with the new password (WordPress converts it to a secure format automatically after login).
If the table prefix isn’t
wp_, check $table_prefix in wp-config.php.