{"id":89,"date":"2012-01-31T01:21:00","date_gmt":"2012-01-31T01:21:00","guid":{"rendered":"http:\/\/pheonixsolutions.com\/?p=89"},"modified":"2026-05-23T08:36:24","modified_gmt":"2026-05-23T03:06:24","slug":"reset-wordpress-admin-password","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/reset-wordpress-admin-password\/","title":{"rendered":"How to Reset a WordPress Admin Password"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Losing access to a WordPress admin account can prevent you from managing your website, updating content, or performing maintenance tasks. Fortunately, WordPress provides multiple ways to reset the administrator password. Depending on the level of access available, you can reset the password through the WordPress login page, phpMyAdmin, WP-CLI, or directly from the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains the common methods to safely reset a WordPress admin password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before proceeding, ensure you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access to the WordPress website or hosting account<\/li>\n\n\n\n<li>WordPress administrator username or registered email address<\/li>\n\n\n\n<li>Access to cPanel, phpMyAdmin, or SSH (for advanced methods)<\/li>\n\n\n\n<li>Database credentials (if resetting through the database)<\/li>\n\n\n\n<li>Backup of the website and database before making changes<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">IMPLEMENTATION<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<div dir=\"ltr\" style=\"text-align: left;\">Reset WordPress admin password using database:\n<p>\u00c2\u00a01. Find the database name in &#8220;wp-config.php&#8221; for the corresponding WP domain.<\/p>\n<p>2. cd \/var\/lib\/mysql<\/p>\n<p>3. Take backup<br \/>\u00c2\u00a0\u00c2\u00a0 mysqldump databasename &gt; databasename.sql<\/p>\n<p>4. Enter into MySQL prompt.<br \/>\u00c2\u00a0\u00c2\u00a0 mysql<\/p>\n<p>root@hostname# mysql<br \/>Welcome to the MySQL monitor.\u00c2\u00a0 Commands end with ; or \\g.<br \/>Your MySQL connection id is 2859662<br \/>Server version: 5.1.56-log MySQL Community Server (GPL)<\/p>\n<p>mysql&gt;<\/p>\n<p>mysql&gt; use databasename;<\/p>\n<p>mysql&gt; show tables;<\/p>\n<p>5.check for &#8216;wp_users&#8217; table.<\/p>\n<p>mysql&gt; select * from wp_users; (To check username)<\/p>\n<p>mysql&gt; update wp_users set user_pass=MD5(&#8216;GIVE_STRONG_ADMIN_PASSWORD_HERE&#8217;) where\u00c2\u00a0 user_login=&#8221;admin&#8221;;<\/p>\n<p>mysql&gt; quit.<\/p>\n<p>Now, try to access WordPress using new password.<br \/>\u00c2\u00a0<\/p>\n<\/div>\n<h2>Conclusion<\/h2>\n<p>Resetting a WordPress admin password is a straightforward process when the correct access methods are available. The \u201cLost Password\u201d feature is the simplest option, while phpMyAdmin, WP-CLI, and MySQL methods are useful when email access is unavailable. Always ensure proper backups are taken before making database-level changes to avoid accidental issues.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction Losing access to a WordPress admin account can prevent you from managing your website, updating content, or performing maintenance [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phns3A-1r","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":10232,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions\/10232"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}