Access phpMyAdmin through your hosting control panel (e.g., cPanel) and open your WordPress database. 2. Locate the users table (typically wp_users, but prefix may vary) and click to view its data. 3. Find your admin user, click "Edit", enter a new password in the user_pass field, select MD5 from the Function dropdown, then click "Go" to save. 4. Log in to WordPress with the new password, and optionally update it again via the dashboard to ensure stronger hashing. 5. If issues arise, verify the correct database, table prefix from wp-config.php, and that MD5 was selected during the reset. This method reliably restores access when standard password recovery fails.
If you're locked out of your WordPress site and can't reset your password through the usual "Lost your password?" link, you can manually reset it using phpMyAdmin — a tool commonly provided by web hosts for managing MySQL databases. Here's how to do it safely and effectively.

1. Access phpMyAdmin via Your Hosting Control Panel
Log in to your web hosting account (e.g., cPanel, Plesk, or your provider’s dashboard). Look for the phpMyAdmin icon under the Databases section and click it to open the database management interface.
?? Make sure you know which database belongs to your WordPress site if you have multiple databases.
![]()
2. Locate the WordPress Users Table
Once in phpMyAdmin:
- Select your WordPress database from the left-hand column (usually named something like
yourname_wordpress
). - Look for the table called
wp_users
.
(Note: The prefix might be different if you changed it during installation — e.g.,wp123_users
,myblog_users
, etc.)
Click on the table name to view its data.

3. Edit the User Password Field
In the wp_users
table, you’ll see a list of users. Find the row for the admin or user account whose password you want to reset.
- Click the "Edit" button (pencil icon) next to the desired user.
- Locate the
user_pass
field. - In the input box, enter your new password.
- To the right of the password field, you’ll see a dropdown — select MD5 from the "Function" column.
(WordPress stores passwords as MD5 hashes, so this ensures the password is properly encrypted.)
? Example:
- Password:
mypass123
- Function:
MD5
Scroll down and click "Go" to save the changes.
4. Test Your New Password
Go to your WordPress login page (yoursite.com/wp-login.php
) and log in with the username/email and the new password you just set.
If it works — great! You're back in.
Optional: Use a Hashed Password for Better Security
While MD5 is accepted by WordPress for backward compatibility, it’s not the most secure hashing method. However, WordPress automatically re-hashes the password using stronger methods (like bcrypt) the next time you log in. So once you log in successfully, WordPress will upgrade the hash behind the scenes.
To be extra safe:
- After logging in, go to Users > Your Profile and change the password again through the WordPress dashboard.
- This ensures the password is stored using modern hashing.
Troubleshooting Tips
- ? "Access denied" after reset? Double-check the username and password. Make sure you selected MD5 as the function.
- ? Can’t find
wp_users
? Check the table prefix. Look at yourwp-config.php
file and find the$table_prefix
value to confirm. - ? Wrong database selected? Confirm the database name in
wp-config.php
underDB_NAME
.
That’s it. Resetting your WordPress password via phpMyAdmin is a reliable fallback when other methods fail. Just remember to keep your database access secure and avoid using simple passwords.
Basically: edit user_pass
, set the password, choose MD5, and save.
The above is the detailed content of How to reset WordPress password using phpMyAdmin. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Optimizing database tables can improve performance. The specific steps are as follows: 1. Log in to phpMyAdmin and select the corresponding database; 2. Select the table to be optimized from the table list, usually a table with high-frequency insertion, update or delete operations; 3. Select "Optimizetable" in the "Withselected:" menu and confirm execution. During optimization, MySQL rebuilds the table to reduce disk I/O, update index statistics, and free up space occupied by deleted or modified data, but this operation temporarily locks the table and is recommended during low peak periods. Not all tables need to be optimized regularly. It is more appropriate to optimize frequently changed tables once a month, and other tables may depend on the situation.

Quick and Custom are two options for phpMyAdmin to export databases. Quick is suitable for fast backup or migration of data, exported in the default SQL format without additional settings; while Custom provides advanced control functions, supports selection of file formats, compression methods, data structures, etc., suitable for scenarios where specific configurations are required or are ready to be delivered to other systems.

When encountering phpMyAdmin timeout or upload restrictions, you usually need to adjust the PHP configuration. 1. Increase max_execution_time, if set to 300 seconds or 0 to release the time limit. 2. Adjust upload_max_filesize and post_max_size, if both set to 64M, and make sure post_max_size is slightly larger. 3. If you cannot edit php.ini, you can add the corresponding settings in .htaccess. After modification, restart the web server and take effect.

phpMyAdmindisplaysandallowseditingofcolumndefaultsandauto-incrementsettingsthroughthetablestructureview.1.Defaultvaluesareshowninthe"Default"column,whereyoucaneditthemviadropdownorinputfield,supportingNULL,CURRENT_TIMESTAMP,USER(),orcustomv

The "Designer" feature of phpMyAdmin is a visualization tool that helps users understand and manage relationships between tables in MySQL or MariaDB databases. It graphically displays table structure, foreign key connections, supports custom tags and annotations, provides an intuitive database schema view, and allows users to interactively adjust layouts. To use this feature, make sure the database uses the InnoDB engine and has foreign key constraints defined, then you can enter the interface by selecting the database and clicking the "Designer" tab at the top. In order to effectively use Designer, you should ensure that foreign keys are correctly set, use drag and drop functions to optimize layout, save the current arrangement, and add comments to improve readability. This tool is debugging complex queries,

UsingphpMyAdminonaproductionserverispossiblebutrequiresstrictsecuritymeasures.1.Secureaccessbyusingstrongauthentication,limitingIPaccess,enabling2FA,andchangingthedefaultURL.2.Keepitupdatedthroughofficialsources,applysecuritypatches,andmonitorforCVEs

phpMyAdmindoesnotimposeahardlimitondatabasesortables,butperformancedegradesbasedonserverresources.1.AvailableRAM,CPUpower,anddiskI/Ospeedsignificantlyimpactusability.2.Modestserverstypicallyhandle50–100databases,whilehigh-performancesetupscanmanagehu

To set the default character set for a new database or table in phpMyAdmin, you should first set the global default character set and collation rules by modifying the MySQL server configuration file. For example, add character-set-server=utf8mb4 and collation-server=utf8mb4_unicode_ci in /etc/my.cnf or C:\ProgramData\MySQL\MySQLServerX.Y\my.ini, and then restart the MySQL service; secondly, when creating a new database in phpMyAdmin, you should select the corresponding collation rules in the "Collation" drop-down menu.
