Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud.
Cloud and VPS expertise, security, performance, and step-by-step tutorials.
Learn, deploy, and keep building with NetCloud24.
Sometimes, WordPress administrators may lose access to their admin dashboard due to forgotten passwords. If you’re running your website on a Windows VPS UK, Windows VPS, or any other UK Windows VPS, this guide will show you how to reset the WordPress admin password directly from the command-line.
Steps to Reset the WordPress Admin Password Using WP-CLI
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 Windows VPS or any Windows VPSServer VPS environment, follow these steps:
Visual overview: How to Reset the WordPress Admin Password on the Command-Line
Access Your VPS: Log in to your or any Windows VPSVirtual Private Server using SSH or Remote Desktop. For UK Windows VPS users, you can easily connect through your VPS provider’s console.
Navigate to the WordPress Installation: Use the command line to move to the directory where WordPress is installed. For example:
cd /path/to/your/wordpress-installation
Run WP-CLI to Reset the Password: If WP-CLI is installed on your Microsoft SQL VPS Windows or another virtual server, execute the following command:
wp user update USERNAME --user_pass="NewPassword123"
Replace USERNAME with the admin username and NewPassword123 with the desired new password.
Verify the Password Change: Once the command has run successfully, log in to your WordPress admin dashboard with the new password.
Using phpMyAdmin to Reset the Password
If you do not have WP-CLI installed on your Windows VPSVirtual Private Servers, you can reset the password via phpMyAdmin, which is available on most VPS Windows VPS Servers and Windows VPS Hosting UK solutions.
Log in to your phpMyAdmin control panel on your VPS Windows account.
Select your WordPress database from the left-hand menu.
Navigate to the wp_users table and find the admin user.
In the user_pass column, enter the new password in MD5 format. You can generate the MD5 hash using any online tool.
Save the changes, and you should now be able to log in with the new password.
Conclusion
Resetting your WordPress admin password is simple whether you’re using Windows VPS UK, UK VPS Windows, or any Virtual Private Server Hosting Windows solution. Both WP-CLI and phpMyAdmin provide easy ways to regain access to your WordPress dashboard. For reliable and powerful Windows VPSVirtual Private Server Hosting, visit for excellent Windows VPS solutions.
Łukasz Bodziony is the CEO and founder of NETCLOUD24, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance Windows VPS and Remote Desktop Services (RDS) solutions to clients across Europe, North America, and beyond.
His expertise covers a wide range of technologies, including Microsoft Azure, Proxmox VE, Amazon Web Services (AWS), and numerous other virtualization and cloud platforms.
Practical checklist for applying the guidance in this article.
Beyond running his hosting business, Łukasz also provides professional paid server configuration and optimization services for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.
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 Windows VPS.
How to Reset the WordPress Admin Password on the Command-Line
Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud.
Cloud and VPS expertise, security, performance, and step-by-step tutorials.
Learn, deploy, and keep building with NetCloud24.
Forgetting your WordPress admin password can be frustrating, but thankfully, you can easily reset it using the command line. This is especially useful if you don’t have access to the WordPress dashboard. In this guide, we’ll walk you through how to reset your WordPress admin password directly from the command line. Using a can simplify WordPress management, giving you the performance and control that only a VPS server can offer.
Step 1: Access Your VPS Server
If you’re hosting your WordPress site on a VPS, the first step is to connect to your server via SSH. If you’re using a Windows VPS, you can connect to your server using an SSH client like PuTTY or the terminal if you’re on Linux or macOS. Run the following command to access your server:
ssh username@your-server-ip
Make sure to replace username with your actual VPS username and your-server-ip with the IP address of your VPS.
Step 2: Navigate to Your WordPress Directory
Once connected to your VPS server, navigate to the directory where your WordPress installation is located. The default location is typically inside the /var/www/html directory:
cd /var/www/html
If your WordPress installation is in a different location, adjust the path accordingly.
Visual overview: How to Reset the WordPress Admin Password on the Command-Line
Step 3: Access the MySQL Database
Your WordPress admin password is stored in the database. To reset it, you’ll need to access MySQL. If you’re using a Windows VPS to host your site, MySQL should already be installed and configured. Log into the MySQL database with the following command:
sudo mysql -u root -p
Enter the MySQL root password when prompted. If you’re unsure of your MySQL password, it can be found in your VPS server configuration files.
Step 4: Select the WordPress Database
Once you’re logged into MySQL, you need to select the database where WordPress is installed. First, list all databases with this command:
SHOW DATABASES;
Identify your WordPress database from the list, then select it with the following command:
USE your_database_name;
Replace your_database_name with the actual name of your WordPress database.
Step 5: Update the Admin Password
Now that you’re inside the WordPress database, you can reset the admin password. To do this, run the following SQL command, replacing newpassword with the desired new password and admin with your admin username:
UPDATE wp_users SET user_pass = MD5('newpassword') WHERE user_login = 'admin';
The MD5() function encrypts the password, which is how WordPress stores passwords in the database. Make sure the table prefix wp_ matches your actual WordPress table prefix.
Key topics covered in this NetCloud24 guide.
Step 6: Verify the Password Update
To ensure the password was updated correctly, you can query the database to check if the new password has been applied:
SELECT user_login, user_pass FROM wp_users WHERE user_login = 'admin';
This will display the username and encrypted password for the admin account. Once verified, you can exit MySQL:
EXIT;
Step 7: Log in to WordPress
With the password updated, you can now log in to your WordPress admin dashboard using your new credentials. Navigate to http://your-domain.com/wp-admin and enter your admin username and the new password you set.
If you’re hosting your WordPress site on a , the VPS server will offer you the stability, speed, and control needed to manage your WordPress site effectively.
Conclusion
Resetting your WordPress admin password via the command line is a quick and effective way to regain access to your site, especially when you don’t have access to the dashboard. By hosting your WordPress site on a , you benefit from a more secure, high-performance hosting environment, ensuring your WordPress site runs smoothly even as it grows.
For more information on VPS hosting and WordPress management, visit to explore their VPS server options.
Łukasz Bodziony is the CEO and founder of NETCLOUD24, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance Windows VPS and Remote Desktop Services (RDS) solutions to clients across Europe, North America, and beyond.
His expertise covers a wide range of technologies, including Microsoft Azure, Proxmox VE, Amazon Web Services (AWS), and numerous other virtualization and cloud platforms.
Beyond running his hosting business, Łukasz also provides professional paid server configuration and optimization services for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.
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 Windows VPS.
How to Reset the WordPress Admin Password on the Command-Line
Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud.
Cloud and VPS expertise, security, performance, and step-by-step tutorials.
Learn, deploy, and keep building with NetCloud24.
Sometimes, WordPress administrators may lose access to their admin dashboard due to forgotten passwords. If you’re running your website on a Windows VPS UK, Windows VPS, or any other UK Windows VPS, this guide will show you how to reset the WordPress admin password directly from the command-line.
Steps to Reset the WordPress Admin Password Using WP-CLI
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 Windows VPS or any Windows VPSServer VPS environment, follow these steps:
Visual overview: How to Reset the WordPress Admin Password on the Command-Line
Access Your VPS: Log in to your or any Windows VPSVirtual Private Server using SSH or Remote Desktop. For UK Windows VPS users, you can easily connect through your VPS provider’s console.
Navigate to the WordPress Installation: Use the command line to move to the directory where WordPress is installed. For example:
cd /path/to/your/wordpress-installation
Run WP-CLI to Reset the Password: If WP-CLI is installed on your Microsoft SQL VPS Windows or another virtual server, execute the following command:
wp user update USERNAME --user_pass="NewPassword123"
Replace USERNAME with the admin username and NewPassword123 with the desired new password.
Verify the Password Change: Once the command has run successfully, log in to your WordPress admin dashboard with the new password.
Using phpMyAdmin to Reset the Password
If you do not have WP-CLI installed on your Windows VPSVirtual Private Servers, you can reset the password via phpMyAdmin, which is available on most VPS Windows VPS Servers and Windows VPS Hosting UK solutions.
Log in to your phpMyAdmin control panel on your VPS Windows account.
Select your WordPress database from the left-hand menu.
Navigate to the wp_users table and find the admin user.
In the user_pass column, enter the new password in MD5 format. You can generate the MD5 hash using any online tool.
Save the changes, and you should now be able to log in with the new password.
Conclusion
Resetting your WordPress admin password is simple whether you’re using Windows VPS UK, UK VPS Windows, or any Virtual Private Server Hosting Windows solution. Both WP-CLI and phpMyAdmin provide easy ways to regain access to your WordPress dashboard. For reliable and powerful Windows VPSVirtual Private Server Hosting, visit for excellent Windows VPS solutions.
Łukasz Bodziony is the CEO and founder of NETCLOUD24, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance Windows VPS and Remote Desktop Services (RDS) solutions to clients across Europe, North America, and beyond.
His expertise covers a wide range of technologies, including Microsoft Azure, Proxmox VE, Amazon Web Services (AWS), and numerous other virtualization and cloud platforms.
Practical checklist for applying the guidance in this article.
Beyond running his hosting business, Łukasz also provides professional paid server configuration and optimization services for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.
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 Windows VPS.
How to Reset the WordPress Admin Password on the Command-Line
Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud.
Cloud and VPS expertise, security, performance, and step-by-step tutorials.
Learn, deploy, and keep building with NetCloud24.
How to Reset the WordPress Admin Password on the Command-Line
If you need to reset the WordPress admin password on your VPS server, you can do so using the command line. Follow these steps to reset your password quickly.
Step 1: Access Your Server
First, log in to your VPS server via SSH:
ssh username@your_server_ip
Step 2: Navigate to Your WordPress Directory
Change to the directory where WordPress is installed. This is usually in a directory like /var/www/html:
cd /var/www/html
Step 3: Use WP-CLI to Reset the Password
If you have WP-CLI installed, you can reset the admin password with the following command. Replace ‘admin’ with your username and ‘newpassword’ with your desired password:
wp user update admin --user_pass=newpassword
Step 4: Verify the Password Change
Now, try logging in to your WordPress admin dashboard with the new password:
Visual overview: How to Reset the WordPress Admin Password on the Command-Line
http://your_site_url/wp-admin
Conclusion
By following these steps, you have successfully reset the WordPress admin password on your VPS server using the command line. This can save you time and help you regain access to your site quickly!
Łukasz Bodziony is the CEO and founder of NETCLOUD24, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance Windows VPS and Remote Desktop Services (RDS) solutions to clients across Europe, North America, and beyond.
His expertise covers a wide range of technologies, including Microsoft Azure, Proxmox VE, Amazon Web Services (AWS), and numerous other virtualization and cloud platforms.
Beyond running his hosting business, Łukasz also provides professional paid server configuration and optimization services for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.
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 Windows VPS.
How to Reset the WordPress Admin Password on the Command-Line
Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud.
Cloud and VPS expertise, security, performance, and step-by-step tutorials.
Learn, deploy, and keep building with NetCloud24.
Forgetting your WordPress admin password can be frustrating, but thankfully, you can easily reset it using the command line. This is especially useful if you don’t have access to the WordPress dashboard. In this guide, we’ll walk you through how to reset your WordPress admin password directly from the command line. Using a can simplify WordPress management, giving you the performance and control that only a VPS server can offer.
Step 1: Access Your VPS Server
If you’re hosting your WordPress site on a VPS, the first step is to connect to your server via SSH. If you’re using a Windows VPS, you can connect to your server using an SSH client like PuTTY or the terminal if you’re on Linux or macOS. Run the following command to access your server:
ssh username@your-server-ip
Make sure to replace username with your actual VPS username and your-server-ip with the IP address of your VPS.
Step 2: Navigate to Your WordPress Directory
Once connected to your VPS server, navigate to the directory where your WordPress installation is located. The default location is typically inside the /var/www/html directory:
cd /var/www/html
If your WordPress installation is in a different location, adjust the path accordingly.
Visual overview: How to Reset the WordPress Admin Password on the Command-Line
Step 3: Access the MySQL Database
Your WordPress admin password is stored in the database. To reset it, you’ll need to access MySQL. If you’re using a Windows VPS to host your site, MySQL should already be installed and configured. Log into the MySQL database with the following command:
sudo mysql -u root -p
Enter the MySQL root password when prompted. If you’re unsure of your MySQL password, it can be found in your VPS server configuration files.
Step 4: Select the WordPress Database
Once you’re logged into MySQL, you need to select the database where WordPress is installed. First, list all databases with this command:
SHOW DATABASES;
Identify your WordPress database from the list, then select it with the following command:
USE your_database_name;
Replace your_database_name with the actual name of your WordPress database.
Step 5: Update the Admin Password
Now that you’re inside the WordPress database, you can reset the admin password. To do this, run the following SQL command, replacing newpassword with the desired new password and admin with your admin username:
UPDATE wp_users SET user_pass = MD5('newpassword') WHERE user_login = 'admin';
The MD5() function encrypts the password, which is how WordPress stores passwords in the database. Make sure the table prefix wp_ matches your actual WordPress table prefix.
Key topics covered in this NetCloud24 guide.
Step 6: Verify the Password Update
To ensure the password was updated correctly, you can query the database to check if the new password has been applied:
SELECT user_login, user_pass FROM wp_users WHERE user_login = 'admin';
This will display the username and encrypted password for the admin account. Once verified, you can exit MySQL:
EXIT;
Step 7: Log in to WordPress
With the password updated, you can now log in to your WordPress admin dashboard using your new credentials. Navigate to http://your-domain.com/wp-admin and enter your admin username and the new password you set.
If you’re hosting your WordPress site on a , the VPS server will offer you the stability, speed, and control needed to manage your WordPress site effectively.
Conclusion
Resetting your WordPress admin password via the command line is a quick and effective way to regain access to your site, especially when you don’t have access to the dashboard. By hosting your WordPress site on a , you benefit from a more secure, high-performance hosting environment, ensuring your WordPress site runs smoothly even as it grows.
For more information on VPS hosting and WordPress management, visit to explore their VPS server options.
Łukasz Bodziony is the CEO and founder of NETCLOUD24, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance Windows VPS and Remote Desktop Services (RDS) solutions to clients across Europe, North America, and beyond.
His expertise covers a wide range of technologies, including Microsoft Azure, Proxmox VE, Amazon Web Services (AWS), and numerous other virtualization and cloud platforms.
Beyond running his hosting business, Łukasz also provides professional paid server configuration and optimization services for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.
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 Windows VPS.
How to Reset the WordPress Admin Password on the Command-Line