{"id":2764,"date":"2024-07-09T13:46:05","date_gmt":"2023-04-04T23:06:51","guid":{"rendered":""},"modified":"2025-02-02T00:46:19","modified_gmt":"2025-02-01T23:46:19","slug":"how-to-reset-the-wordpress-admin-password-on-the-command-line","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-reset-the-wordpress-admin-password-on-the-command-line\/","title":{"rendered":"How to Reset the WordPress Admin Password on the Command-Line"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header><\/header>\n<section>\n<p>Sometimes, WordPress administrators may lose access to their admin dashboard due to forgotten passwords. If you&#8217;re running your website on a <strong>Windows VPS UK<\/strong>, <strong>Windows VPS<\/strong>, or any other <strong>UK Windows VPS<\/strong>, this guide will show you how to reset the WordPress admin password directly from the command-line.<\/p>\n<h2>Steps to Reset the WordPress Admin Password Using WP-CLI<\/h2>\n<p>One of the easiest ways to reset the admin password is by using the WordPress Command Line Interface (WP-CLI). If your site is hosted on a <strong>Windows VPS<\/strong> or any <strong>Windows VPSServer VPS<\/strong> environment, follow these steps:<\/p>\n<ol>\n<li><strong>Access Your VPS:<\/strong> Log in to your  or any <strong>Windows VPSVirtual Private Server<\/strong> using SSH or Remote Desktop. For <strong>UK Windows VPS<\/strong> users, you can easily connect through your VPS provider&#8217;s console.<\/li>\n<li><strong>Navigate to the WordPress Installation:<\/strong> Use the command line to move to the directory where WordPress is installed. For example:\n<pre>cd \/path\/to\/your\/wordpress-installation<\/pre>\n<\/li>\n<li><strong>Run WP-CLI to Reset the Password:<\/strong> If WP-CLI is installed on your <strong>Microsoft SQL VPS Windows<\/strong> or another virtual server, execute the following command:\n<pre>wp user update USERNAME --user_pass=\"NewPassword123\"<\/pre>\n<p>Replace <code>USERNAME<\/code> with the admin username and <code>NewPassword123<\/code> with the desired new password.<\/li>\n<li><strong>Verify the Password Change:<\/strong> Once the command has run successfully, log in to your WordPress admin dashboard with the new password.<\/li>\n<\/ol>\n<h2>Using phpMyAdmin to Reset the Password<\/h2>\n<p>If you do not have WP-CLI installed on your <strong>Windows VPSVirtual Private Servers<\/strong>, you can reset the password via phpMyAdmin, which is available on most <strong>VPS Windows VPS Servers<\/strong> and <strong>Windows VPS Hosting UK<\/strong> solutions.<\/p>\n<ol>\n<li>Log in to your phpMyAdmin control panel on your <strong>VPS Windows<\/strong> account.<\/li>\n<li>Select your WordPress database from the left-hand menu.<\/li>\n<li>Navigate to the <code>wp_users<\/code> table and find the admin user.<\/li>\n<li>In the <strong>user_pass<\/strong> column, enter the new password in MD5 format. You can generate the MD5 hash using any online tool.<\/li>\n<li>Save the changes, and you should now be able to log in with the new password.<\/li>\n<\/ol>\n<h2>Conclusion<\/h2>\n<p>Resetting your WordPress admin password is simple whether you&#8217;re using <strong>Windows VPS UK<\/strong>, <strong>UK VPS Windows<\/strong>, or any <strong>Virtual Private Server Hosting Windows<\/strong> solution. Both WP-CLI and phpMyAdmin provide easy ways to regain access to your WordPress dashboard. For reliable and powerful <strong>Windows VPSVirtual Private Server Hosting<\/strong>, visit  for excellent <strong>Windows VPS<\/strong> solutions.<\/p>\n<\/section>\n<footer>\n<p>For more information on <strong>Windows VPS Hosting UK<\/strong> and <strong>Windows VPSVirtual Private Servers<\/strong>, visit <a href=\"https:\/\/ie.netcloud24.com\">netcloud24.com<\/a>.<\/p>\n<\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Sometimes, WordPress administrators may lose access to their admin dashboard due to forgotten passwords. If you&#8217;re running your website on a Windows VPS UK, Windows VPS, or\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","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}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2764","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2764"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2764\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}