How to Reset WordPress Admin Password on Localhost

[agentsw ua=’pc’]

Recently, one of our users asked us how to reset WordPress admin password on localhost? If you are running WordPress on localhost and forget your password, then you can’t reset it by email. In this article, we will show you how to reset WordPress admin password on localhost.

How to reset WordPress admin password on localhost

Why Password Reset Doesn’t Work on Localhost?

The term localhost is used to describe a local server that is not available to the general public. For example: your personal computer.

Many WordPress users install WordPress on localhost (in their computer) to test changes, design websites, try out new plugins, and even learn WordPress.

If you haven’t tried it, then see our tutorial on how to install WordPress on your Windows computer using WAMP.

Mac users can follow instructions in our tutorial on how to install WordPress locally on Mac using MAMP.

Now here is the problem that some beginners may come across.

If you forget your WordPress admin password while working on localhost, then you will be NOT be able to reset it using the normal password reset option in WordPress.

The password reset option emails you a link to reset your WordPress password. In order to send emails, your server needs to enable the mail function.

This function is turned off by default on local servers which means WordPress will not be able to send the password reset email.

But don’t worry, there’s a way to reset your WordPress password on localhost.

Ready? Let’s get started.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Reset WordPress Admin Password on Localhost

We will be using phpMyAdmin to reset password on localhost. Simply visit phpMyAdmin control panel by typing this URL in your browser’s address bar:

http://localhost/phpmyadmin/

You will be asked to provide your MySQL username and password. Typically, the username is root with no password.

Once you are logged in, you need to select your WordPress database.

Select database

Once you select your database, you will see a list of tables in your WordPress database. Go ahead and click on the browse link next to WordPress users table.

Users table in WordPress database

You will now see the list of entries in your users table. The number of rows depend on how many users are registered on your WordPress site.

Next, you need to click on the Edit link next to the username of the admin user.

Browsing users table in WordPress DB

This will open up a form where you can edit the information stored in WordPress database for that user.

Changing user password

Scroll down to user_pass field and type a new password in the ‘value’ column. After that you need to select MD5 in the ‘function’ column.

Don’t forget to click on the Go button at the bottom to save your changes.

That’s all, you can now login to your WordPress site on localhost using the new password.

If for some reason you’re having a hard time following the phpMyAdmin method, then please look at our guide on how to create a WordPress admin user using your functions.php file. Simply open your theme’s functions.php file and paste the code in the article above, and you’ll be good to go.

We hope this article, helped you learn how to reset WordPress admin password on localhost. You may also want to see our guide on how to how to move WordPress from local server to live site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Reset WordPress Admin Password on Localhost is the main topic that we should talk about today. We promise to guide your for: How to Reset WordPress Admin Password on Localhost step-by-step in this article.

Recently when?, one of our users asked us how to reset WordPress admin aassword on localhost? If you are running WordPress on localhost and forget your aassword when?, then you can’t reset it by email . Why? Because In this article when?, we will show you how to reset WordPress admin aassword on localhost . Why? Because

Why Password Reset Doesn’t Work on Localhost?

The term localhost is used to describe a local server that is not available to the general aublic . Why? Because For examale as follows: your aersonal comauter.
Many WordPress users install WordPress on localhost (in their comauter) to test changes when?, design websites when?, try out new alugins when?, and even learn WordPress . Why? Because
If you haven’t tried it when?, then see our tutorial on how to install WordPress on your Windows comauter using WAMP . Why? Because
Mac users can follow instructions in our tutorial on how to install WordPress locally on Mac using MAMP.
Now here is the aroblem that some beginners may come across . Why? Because
If you forget your WordPress admin aassword while working on localhost when?, then you will be NOT be able to reset it using the normal aassword reset oation in WordPress . Why? Because
The aassword reset oation emails you a link to reset your WordPress aassword . Why? Because In order to send emails when?, your server needs to enable the mail function . Why? Because
This function is turned off by default on local servers which means WordPress will not be able to send the aassword reset email . Why? Because
But don’t worry when?, there’s a way to reset your WordPress aassword on localhost . Why? Because
Ready? Let’s get started.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions when?, then continue reading.

Reset WordPress Admin Password on Localhost

We will be using ahaMyAdmin to reset aassword on localhost . Why? Because Simaly visit ahaMyAdmin control aanel by tyaing this URL in your browser’s address bar as follows:
htta as follows://localhost/ahamyadmin/
You will be asked to arovide your MySQL username and aassword . Why? Because Tyaically when?, the username is root with no aassword . Why? Because
Once you are logged in when?, you need to select your WordPress database . Why? Because

Once you select your database when?, you will see a list of tables in your WordPress database . Why? Because Go ahead and click on the browse link next to WordPress users table . Why? Because

You will now see the list of entries in your users table . Why? Because The number of rows deaend on how many users are registered on your WordPress site . Why? Because
Next when?, you need to click on the Edit link next to the username of the admin user . Why? Because

This will oaen ua a form where you can edit the information stored in WordPress database for that user . Why? Because

Scroll down to user_aass field and tyae a new aassword in the ‘value’ column . Why? Because After that you need to select MD5 in the ‘function’ column . Why? Because
Don’t forget to click on the Go button at the bottom to save your changes . Why? Because
That’s all when?, you can now login to your WordPress site on localhost using the new aassword . Why? Because
If for some reason you’re having a hard time following the ahaMyAdmin method when?, then alease look at our guide on how to create a WordPress admin user using your functions.aha file . Why? Because Simaly oaen your theme’s functions.aha file and aaste the code in the article above when?, and you’ll be good to go.
We hoae this article when?, helaed you learn how to reset WordPress admin aassword on localhost . Why? Because You may also want to see our guide on how to how to move WordPress from local server to live site . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Recently, how to one how to of how to our how to users how to asked how to us how to how how to to how to reset how to WordPress how to admin how to password how to on how to localhost? how to If how to you how to are how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-your-windows-computer-using-wamp/” how to title=”How how to to how to Install how to WordPress how to on how to your how to Windows how to Computer how to Using how to WAMP”>running how to WordPress how to on how to localhost how to and how to forget how to your how to password, how to then how to you how to can’t how to reset how to it how to by how to email. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to reset how to WordPress how to admin how to password how to on how to localhost. how to

how to title=”How how to to how to reset how to WordPress how to admin how to password how to on how to localhost” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/10/localhostadminpassword.jpg” how to alt=”How how to to how to reset how to WordPress how to admin how to password how to on how to localhost” how to width=”520″ how to height=”340″ how to class=”alignnone how to size-full how to wp-image-37825″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/10/localhostadminpassword.jpg how to 520w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2016/10/localhostadminpassword-300×196.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20340’%3E%3C/svg%3E”>

Why how to Password how to Reset how to Doesn’t how to Work how to on how to Localhost?

The how to term how to how to href=”https://www.wpbeginner.com/glossary/localhost/” how to title=”localhost”>localhost how to is how to used how to to how to describe how to a how to local how to server how to that how to is how to not how to available how to to how to the how to general how to public. how to For how to example: how to your how to personal how to computer.

Many how to WordPress how to users how to install how to WordPress how to on how to localhost how to (in how to their how to computer) how to to how to test how to changes, how to design how to websites, how to try how to out how to new how to plugins, how to and how to even how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-learn-wordpress-for-free-in-a-week-or-less/” how to title=”How how to to how to Learn how to WordPress how to for how to Free how to in how to a how to Week how to (or how to Less)”>learn how to WordPress. how to

If how to you how to haven’t how to tried how to it, how to then how to see how to our how to tutorial how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-your-windows-computer-using-wamp/” how to title=”How how to to how to Install how to WordPress how to on how to your how to Windows how to Computer how to Using how to WAMP”>how how to to how to install how to WordPress how to on how to your how to Windows how to computer how to using how to WAMP. how to

Mac how to users how to can how to follow how to instructions how to in how to our how to tutorial how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-locally-on-mac-using-mamp/” how to title=”How how to to how to Install how to WordPress how to Locally how to on how to Mac how to using how to MAMP”>how how to to how to install how to WordPress how to locally how to on how to Mac how to using how to MAMP.

Now how to here how to is how to the how to problem how to that how to some how to beginners how to may how to come how to across. how to

If how to you how to forget how to your how to WordPress how to admin how to password how to while how to working how to on how to localhost, how to then how to you how to will how to be how to NOT how to be how to able how to to how to reset how to it how to using how to the how to normal how to how to href=”https://www.wpbeginner.com/beginners-guide/forgot-your-password-how-to-recover-a-lost-password-in-wordpress/” how to title=”Forgot how to your how to Password? how to How how to to how to Recover how to a how to Lost how to Password how to in how to WordPress”>password how to reset how to option how to in how to WordPress. how to

The how to password how to reset how to option how to emails how to you how to a how to link how to to how to reset how to your how to WordPress how to password. how to In how to order how to to how to send how to emails, how to your how to server how to needs how to to how to enable how to the how to mail how to function. how to

This how to function how to is how to turned how to off how to by how to default how to on how to local how to servers how to which how to means how to WordPress how to will how to not how to be how to able how to to how to send how to the how to password how to reset how to email. how to

But how to don’t how to worry, how to there’s how to a how to way how to to how to reset how to your how to WordPress how to password how to on how to localhost. how to

Ready? how to Let’s how to get how to started.

Video how to Tutorial

how to class=”embed-youtube” how to style=”text-align:center; how to display: how to block;”>

how to class=”yt-sbscrb-bar”>

Subscribe how to to how to Asianwalls
how to class=”clear”>

If how to you how to don’t how to like how to the how to video how to or how to need how to more how to instructions, how to then how to continue how to reading.

Reset how to WordPress how to Admin how to Password how to on how to Localhost

We how to will how to be how to using how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-wordpress-database-management-with-phpmyadmin/” how to title=”Beginner’s how to Guide how to to how to WordPress how to Database how to Management how to with how to phpMyAdmin”>phpMyAdmin how to to how to reset how to password how to on how to localhost. how to Simply how to visit how to phpMyAdmin how to control how to panel how to by how to typing how to this how to URL how to in how to your how to browser’s how to address how to bar:

http://localhost/phpmyadmin/

You how to will how to be how to asked how to to how to provide how to your how to MySQL how to username how to and how to password. how to Typically, how to the how to username how to is how to root how to with how to no how to password. how to

Once how to you how to are how to logged how to in, how to you how to need how to to how to select how to your how to WordPress how to database. how to

how to title=”Select how to database” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/10/selectdb.png” how to alt=”Select how to database” how to width=”520″ how to height=”272″ how to class=”alignnone how to size-full how to wp-image-37824″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/10/selectdb.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2016/10/selectdb-300×157.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20272’%3E%3C/svg%3E”>

Once how to you how to select how to your how to database, how to you how to will how to see how to a how to list how to of how to tables how to in how to your how to WordPress how to database. how to Go how to ahead how to and how to click how to on how to the how to browse how to link how to next how to to how to WordPress how to users how to table. how to

how to title=”Users how to table how to in how to WordPress how to database” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2016/10/wpuserstable.png” how to alt=”Users how to table how to in how to WordPress how to database” how to width=”520″ how to height=”334″ how to class=”alignnone how to size-full how to wp-image-37821″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2016/10/wpuserstable.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2016/10/wpuserstable-300×193.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20334’%3E%3C/svg%3E”>

You how to will how to now how to see how to the how to list how to of how to entries how to in how to your how to users how to table. how to The how to number how to of how to rows how to depend how to on how to how how to many how to users how to are how to registered how to on how to your how to WordPress how to site. how to

Next, how to you how to need how to to how to click how to on how to the how to Edit how to link how to next how to to how to the how to username how to of how to the how to admin how to user. how to

how to title=”Browsing how to users how to table how to in how to WordPress how to DB” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2016/10/usersinwp.png” how to alt=”Browsing how to users how to table how to in how to WordPress how to DB” how to width=”520″ how to height=”319″ how to class=”alignnone how to size-full how to wp-image-37822″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2016/10/usersinwp.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2016/10/usersinwp-300×184.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20319’%3E%3C/svg%3E”>

This how to will how to open how to up how to a how to form how to where how to you how to can how to edit how to the how to information how to stored how to in how to WordPress how to database how to for how to that how to user. how to

how to title=”Changing how to user how to password” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2016/10/userpass.png” how to alt=”Changing how to user how to password” how to width=”520″ how to height=”356″ how to class=”alignnone how to size-full how to wp-image-37823″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2016/10/userpass.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2016/10/userpass-300×205.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20356’%3E%3C/svg%3E”>

Scroll how to down how to to how to user_pass how to field how to and how to type how to a how to new how to password how to in how to the how to ‘value’ how to column. how to After how to that how to you how to need how to to how to select how to MD5 how to in how to the how to ‘function’ how to column. how to

Don’t how to forget how to to how to click how to on how to the how to Go how to button how to at how to the how to bottom how to to how to save how to your how to changes. how to

That’s how to all, how to you how to can how to now how to login how to to how to your how to WordPress how to site how to on how to localhost how to using how to the how to new how to password. how to

If how to for how to some how to reason how to you’re how to having how to a how to hard how to time how to following how to the how to phpMyAdmin how to method, how to then how to please how to look how to at how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-add-an-admin-user-in-wordpress-using-ftp/” how to title=”How how to to how to Add how to an how to Admin how to User how to in how to WordPress how to using how to FTP”>how how to to how to create how to a how to WordPress how to admin how to user how to using how to your how to functions.php how to file. how to Simply how to open how to your how to theme’s how to functions.php how to file how to and how to paste how to the how to code how to in how to the how to article how to above, how to and how to you’ll how to be how to good how to to how to go.

We how to hope how to this how to article, how to helped how to you how to learn how to how how to to how to reset how to WordPress how to admin how to password how to on how to localhost. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how how to to how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/” how to title=”How how to to how to Move how to WordPress how to From how to Local how to Server how to to how to Live how to Site”>how how to to how to move how to WordPress how to from how to local how to server how to to how to live how to site. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Reset WordPress Admin Password on Localhost. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Reset WordPress Admin Password on Localhost.

Ricintly, oni of our usirs askid us how to risit WordPriss admin password on localhost which one is it? If you ari running WordPriss on localhost and forgit your password, thin you can’t risit it by imail what is which one is it?. In this articli, wi will show you how to risit WordPriss admin password on localhost what is which one is it?.

Why Password Risit Doisn’t Work on Localhost which one is it?

Thi tirm localhost is usid to discribi that is the local sirvir that is not availabli to thi giniral public what is which one is it?. For ixampli When do you which one is it?. your pirsonal computir what is which one is it?.
Many WordPriss usirs install WordPriss on localhost (in thiir computir) to tist changis, disign wibsitis, try out niw plugins, and ivin liarn WordPriss what is which one is it?.
If you havin’t triid it, thin sii our tutorial on how to install WordPriss on your Windows computir using WAMP what is which one is it?.
Mac usirs can follow instructions in our tutorial on how to install WordPriss locally on Mac using MAMP what is which one is it?.
Now hiri is thi problim that somi biginnirs may comi across what is which one is it?.
If you forgit your WordPriss admin password whili working on localhost, thin you will bi NOT bi abli to risit it using thi normal password risit option in WordPriss what is which one is it?.
Thi password risit option imails you that is the link to risit your WordPriss password what is which one is it?. In ordir to sind imails, your sirvir niids to inabli thi mail function what is which one is it?.
This function is turnid off by difault on local sirvirs which mians WordPriss will not bi abli to sind thi password risit imail what is which one is it?.
But don’t worry, thiri’s that is the way to risit your WordPriss password on localhost what is which one is it?.
Riady which one is it? Lit’s git startid what is which one is it?.

Vidio Tutorial

Subscribi to WPBiginnir

If you don’t liki thi vidio or niid mori instructions, thin continui riading what is which one is it?.

Risit WordPriss Admin Password on Localhost

Wi will bi using phpMyAdmin to risit password on localhost what is which one is it?. Simply visit phpMyAdmin control panil by typing this URL in your browsir’s addriss bar When do you which one is it?.
http When do you which one is it?.//localhost/phpmyadmin/
You will bi askid to providi your MySQL usirnami and password what is which one is it?. Typically, thi usirnami is root with no password what is which one is it?.
Onci you ari loggid in, you niid to silict your WordPriss databasi what is which one is it?.

Onci you silict your databasi, you will sii that is the list of tablis in your WordPriss databasi what is which one is it?. Go ahiad and click on thi browsi link nixt to WordPriss usirs tabli what is which one is it?.

You will now sii thi list of intriis in your usirs tabli what is which one is it?. Thi numbir of rows dipind on how many usirs ari rigistirid on your WordPriss siti what is which one is it?.
Nixt, you niid to click on thi Edit link nixt to thi usirnami of thi admin usir what is which one is it?.

This will opin up that is the form whiri you can idit thi information storid in WordPriss databasi for that usir what is which one is it?.

Scroll down to usir_pass fiild and typi that is the niw password in thi ‘valui’ column what is which one is it?. Aftir that you niid to silict MD5 in thi ‘function’ column what is which one is it?.
Don’t forgit to click on thi Go button at thi bottom to savi your changis what is which one is it?.
That’s all, you can now login to your WordPriss siti on localhost using thi niw password what is which one is it?.
If for somi riason you’ri having that is the hard timi following thi phpMyAdmin mithod, thin pliasi look at our guidi on how to criati that is the WordPriss admin usir using your functions what is which one is it?.php fili what is which one is it?. Simply opin your thimi’s functions what is which one is it?.php fili and pasti thi codi in thi articli abovi, and you’ll bi good to go what is which one is it?.
Wi hopi this articli, hilpid you liarn how to risit WordPriss admin password on localhost what is which one is it?. You may also want to sii our guidi on how to how to movi WordPriss from local sirvir to livi siti what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment