How Can You Change Password In Xampp LocalHost?

change password in xampp

Are you using WordPress offline? Do you know how to install WordPress on Xampp server? If you do then the basic problem is to change password in Xampp.

As you know that Xampp is the software to create the local server to run an offline website. It’s beneficial when you want to test a new plugin or a theme.

Most of the developer are using Xampp and WAMP. There are a few more softwares similar of Xampp.

Change Password In Xampp Using The phpMyAdmin.

If you’re aware of the online cPanel then you would know how to handle the database. You have to follow the same procedure here.

Some people think that they would change the password just by clicking on the “Forgot Password” option. But for the localhost, the password mail function isn’t active so you have to use the database.

There are a few steps to follow.

Step 1:- Run the Xampp server and open “localhost/phpmyadmin” in your browser.

Step 2:- From the phpMyAdmin, you have to select the name of the database from the left-hand side menu.

reset password in xampp

Step 3:- All the rows of the database will appear to you. You have to open “wp_users“.

reset password in xampp

Step 4:- All the users you have created would be shown. You will notice your name and the password along with it.

Step 5:- There would be an “edit” option. Click to that.

change password in xampp

Step 6:- You will notice all the details of that user. Along with the “user_pass” field, you have to choose the “MD5” and add the new password.

reset password

Click on the save option and your password would get changed. When you change password in Xammp or on the online server, you have to use MD5.

You will not see the password you add. It will automatically get changed in an unusual code.

Have You Ever Tried To Change Password In Xampp?

It’s always a good idea to remain safe. Though on the localhost, you don’t need to get scared because no one is going to hack it.

But when you forget your password then you have to use the database to change password in Xampp. Just follow the steps shown above.

by Ravi Chahar

A WordPress Professional and the LinkedIn Influencer. A coder by passion and a blogger by choice. WordPress theme development is his forte. He is your WordPress guy who will teach you how to solve WordPress errors, WordPress security issues, design issues and what not.

Get Free Updates Into Your Inbox

Learn Everything Just Like I Did



  1. Hey Ravi,
    Great tutorial!

    I use this method very often, especially when I develop a new website locally before uploading it to its intended host.
    You made it very simple here, newbies will not fine better resource for doing it!

    Keep posting brother!


    1. Hi Hussain,

      For a web developer, it’s important to know about such things. Changing the password isn’t a big deal but beginners fret when they forget it.
      The best thing is to use the phpMyAdmin whether you do it online or offline.

      Thanks for taking the time to comment.
      Have an awesome day.

  2. Technical stuff is definitely not for everyone, but following your tutorial definitely makes it easy for people that also have the same problem as you.

    1. Hey Louis,

      There are different kinds of things to do. But when it comes to the technical part, I quite like it.
      Good to know that I am helping someone.
      Thanks for your visit.

Leave a Reply

Your email address will not be published. Required fields are marked *