{"id":18352,"date":"2026-09-29T19:52:41","date_gmt":"2026-09-29T16:52:41","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/reset-wordpress-password-phpmyadmin\/"},"modified":"2026-09-29T19:52:41","modified_gmt":"2026-09-29T16:52:41","password":"","slug":"reset-wordpress-password-phpmyadmin","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/reset-wordpress-password-phpmyadmin\/","title":{"rendered":"How to Reset a WordPress Password from phpMyAdmin"},"content":{"rendered":"<div class=\"hy-tldr\" style=\"background:#f6f7fb;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:0 0 20px;line-height:1.8\"><strong>In short:<\/strong> If you forgot your WordPress password: in cPanel open phpMyAdmin, choose your site&#8217;s database, open the users table (wp_users or a table ending in _users), edit your user, type the new password in the user_pass field, choose MD5 in the Function column, and click Go.<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/05\/13\/reset-wordpress-password.jpg\" alt=\"Reset a WordPress password from phpMyAdmin\" \/><\/p>\n<h2>When do you need this?<\/h2>\n<p>Sometimes you cannot log in to WordPress, or you forgot the admin password and cannot recover it by email. In that case you can change the password directly in the database with phpMyAdmin, which comes with your hosting control panel.<\/p>\n<h2>Steps<\/h2>\n<p>In this example we change the password of the user <strong>admin<\/strong>.<\/p>\n<p><strong>1.<\/strong> Log in to cPanel (yourdomain.com\/cpanel) and click <strong>phpMyAdmin<\/strong> in the <strong>Databases<\/strong> section.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/05\/13\/cpanel_phpmyadmin_block-ar.png\" alt=\"phpMyAdmin in cPanel\" \/><\/p>\n<p><strong>2.<\/strong> phpMyAdmin opens in a new window and shows the databases in your account.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/05\/13\/cpanel_phpmyadmin_database_show-ar.png\" alt=\"Databases in phpMyAdmin\" \/><\/p>\n<p><strong>3.<\/strong> Click the database your WordPress site uses. If you are not sure which one, check DB_NAME in the site&#8217;s <strong>wp-config.php<\/strong> file.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/05\/13\/How-to-Reset-WordPress-Password-from-phpMyAdmin-Cpanel-Step-3.png\" alt=\"WordPress database tables\" \/><\/p>\n<p><strong>4.<\/strong> Find the users table, usually named <strong>wp_users<\/strong> (the prefix may be different), and click <strong>Search<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/05\/13\/cpanel_phpmyadmin_wordpress_database_search_users_user-ar.png\" alt=\"Search the users table\" \/><\/p>\n<p><strong>5.<\/strong> In the <strong>user_login<\/strong> field, type the username (here: admin) and click <strong>Go<\/strong>. The matching user appears.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/05\/13\/cpanel_phpmyadmin_wordpress_database_list_users_edit-ar.png\" alt=\"Edit the WordPress user\" \/><\/p>\n<p><strong>6.<\/strong> Click <strong>Edit<\/strong> next to the user.<\/p>\n<p><strong>7.<\/strong> In the <strong>user_pass<\/strong> field, type the new password and select <strong>MD5<\/strong> from the <strong>Function<\/strong> drop-down. Do not save the password as plain text; without MD5 the new password will not work.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hyyathost.com\/images\/2017\/05\/13\/cpanel_phpmyadmin_wordpress_save_user-ar.png\" alt=\"Set user_pass with MD5\" \/><\/p>\n<p><strong>8.<\/strong> Click <strong>Go<\/strong> to save.<\/p>\n<p>You can now log in to WordPress with the new password. WordPress automatically converts it to a stronger hash on your first login. For extra safety, change the password again from your WordPress profile after logging in.<\/p>\n<p class=\"hy-svc-link\" style=\"background:#fff5f7;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:20px 0;line-height:1.8\"><strong>Related service:<\/strong> <a href=\"https:\/\/www.hyyat.com\/en\/wordpress-hosting\/\">Hyyat Host WordPress hosting<\/a> is optimized for WordPress, from $1.93\/month with free SSL and free migration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short: If you forgot your WordPress password: in cPanel open phpMyAdmin, choose your site&#8217;s database, open the users table (wp_users or a table ending in _users), edit your user, type the new password in the user_pass field, choose MD5 in the Function column, and click Go. When do you need this? Sometimes you cannot [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2747],"doc_tag":[],"class_list":["post-18352","docs","type-docs","status-publish","hentry","doc_category-wordpress-explanations"],"year_month":"2026-10","word_count":285,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"WordPress explanations","term_url":"https:\/\/www.hyyat.com\/en\/kb\/wordpress-explanations\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18352"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18352\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18352"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18352"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}