News

How to reset the WordPress administrator password?

WordPress is the most popular content management system. More than 43% of all websites in the world are built using it. A big problem when working with WordPress is when you forget your login credentials to manage your site. We will show you some ways to quickly recover your WordPress admin password. Losing your WordPress site administrator password is a situation that can happen to anyone. It often affects webmasters who work on multiple projects at the same time. Learn the methods that will allow you to regain access to the backend of your site if necessary. “Forgot password” option If you know your username or the email address assigned to it, the easiest way to recover your password will be to use the Forgot Password? option on the WordPress login page. To do so, follow the steps below: phpMyAdmin In a situation where trying to reset your password on the login page doesn’t work, or if you don’t have access to the administrator’s email address, you can establish a new password using phpMyAdmin. This method requires some knowledge, but also caution. Before making the change, we suggest backing up the database you use on your site.To use the WordPress password change via phpMyAdmin, follow these steps: Edit the functions.php file Another way to reset the password to the WordPress backend is to use the functions.php file. It is located in the folder of the theme you are using, and an example path on an FTP server might look like this:wp-content/themes/thename_motifHaving your FTP login credentials, follow the steps below: WP-CLI WP-CLI is a tool that allows owners of sites built on CMS WordPress to manage their installations from the command line, without having to log into the site’s backend. The method requires an SSH connection to the server. Once you have done that, follow the steps below: – Navigate to the WordPress installation directory, for example /wordpress – To find the target user, type $ wp user list – Update the wp user update 1 data by replacing the number “1” with the ID of the user for whom you want to make changes – Update data –user_pass=password, replacing the phrase “password” with the new password [admin@admin public_html]$ wp user update admin –user_pass=yournewpasswordSuccess: Updated user 1.[admin@admin public_html]$ MySQL command line Resetting the WordPress site administrator password is also possible via the MySQL command line. This is a method for advanced users that requires access to the database via a command-line (SSH) support tool. When opting for this solution, make sure you back up the database before making changes to it. If you want to use this method, follow the steps described below: Emergency password reset script If the above methods didn’t work and you still can’t log into the CMS WordPress backend, try the emergency password reset script. Keep in mind that this is the most advanced method, which, if carried out without proper skills, can lead to serious consequences, including even losing control of the site! Apply it only if you are confident in your knowledge. If you use the right tools and methods, regaining access to your WordPress site won’t be that difficult. Of course, before you start the work, make a backup of the database used on the site. This is in case something goes wrong while making changes. Fast hosting means fast WordPress Optimal functioning of your WordPress depends largely on the hosting service you use. At netart.com, we offer a dedicated CloudHosting WordPress package. This is cloud hosting specifically optimized for this CMS. It provides sites with the highest performance and uptime. CloudHosting WordPress users get at their disposal a guaranteed power of 4 vCPU and access to 8 GB of RAM. In addition, thanks to CDN netart.com network, sites hosted on CloudHosting load instantly from anywhere in the world. Don’t wait, enhance your site’s capabilities and order CloudHosting WordPress from netart.com!