Close Menu
Infoceptor
  • Business
  • Finance
  • Technology
  • Health
  • Life
  • More
    • Auto
    • Food
    • Health
    • Home
    • Space
    • Travel

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

What's Hot
Flywheel Logo

Flywheel review in 2023

June 8, 2023
Travel restrictions in Canada are different depending on where you're traveling from and to. Here's what you need to know before you go.

Canada: Traveling restrictions and what you need to know before you go

May 19, 2024
If you are planning a trip to Spain, there are some travel restrictions that must be taken into consideration.

Spain: Traveling restrictions and what you need to know before you go

May 19, 2024
Facebook X (Twitter) Instagram
Infoceptor
  • Business
    This guide will show you how to determine the value of your business using different business valuation methods.

    How to value you business – The ultimate guide for 2023

    May 9, 2024
    Have you ever thought of starting your own laundry service? Find out how with this easy guide.

    How to start a laundry service company in 2023

    May 5, 2024
    Learn about the best online payment solutions available to you. Check out what’s available, learn their pros and cons, and choose the one that best fits your needs.

    The 15 best online payment solutions in 2023

    April 27, 2024
    Learn how to create powerful backlinks for your website and increase your site's search engine ranking.

    How to build backlinks to your website

    April 25, 2024
    In this beginner's guide, we will show you the steps involved in creating a mobile app.

    Beginner’s guide on how to develop a mobile app

    April 24, 2024
  • Finance
    Learn how to build wealth and financial security. This article will share steps you can take to build a reliable cash reserve that will grow over time.

    Do you want to build wealth? Here are some ways to grow your money

    May 18, 2024
    Want to know your tax bracket? Check out our article for an overview of the different brackets and what you can expect to pay in 2022.

    Understanding IRS tax brackets – here’s what you’ll pay in 2023

    May 14, 2024
    This article will cover the best electric vehicle battery stocks to buy and invest in.

    The 10 best EV battery stocks to buy in 2023

    May 9, 2024
    The 10 most active penny stocks to watch this year is a list of the most active penny stocks ranked by total volume.

    The 10 most active penny stocks to watch in 2023

    May 8, 2024
    These electric car stocks are making a lot of money and you should consider adding them to your portfolio.

    The best electric car stocks to buy in 2023

    May 8, 2024
  • Technology
    Flywheel Logo

    Flywheel review in 2023

    June 8, 2023
    This article provides a list of the top iPhone models available today. Each model is reviewed based on features, specifications, performance, design and price point.

    Top iPhone models we’ve tested and you should get

    May 17, 2024
    Find out everything you need to know about the Apple Airpods Pro, including their price, features and if they're worth buying.

    Are Apple AirPods Pro a great choice in 2023?

    May 17, 2024
    To help you find the best responsive WordPress themes, we analyzed more than 100 themes and found those that are currently trending.

    The best responsive WordPress themes in 2023

    May 16, 2024
    These sympathy gifts make a great way to show you care while they also help your loved ones get through the tough times.

    The 15 best sympathy gifts that will show you care

    May 15, 2024
  • Health
  • Life
    These sympathy gifts make a great way to show you care while they also help your loved ones get through the tough times.

    The 15 best sympathy gifts that will show you care

    May 15, 2024
    Water bottles are a great way to stay hydrated. This article is dedicated to the most popular water bottles of the year!

    The best water bottles of 2023

    May 10, 2024
    Learn 30 weird and fun facts that will make you question everything.

    30 weird and fun facts that will make you question everything

    May 10, 2024
    Find out which cities in the US are the best for quality of life by checking out this article.

    20 best cities for quality of life in the USA

    May 7, 2024
    There are many ways to print your designs on t-shirts. Check out our list of the best printing services that offer top-notch quality at affordable prices.

    The 10 best T-shirt printing services of 2023

    May 6, 2024
  • More
    • Auto
    • Food
    • Health
    • Home
    • Space
    • Travel
Facebook X (Twitter) Instagram
Trending
  • Flywheel review in 2023
  • Canada: Traveling restrictions and what you need to know before you go
  • Spain: Traveling restrictions and what you need to know before you go
  • Do you want to build wealth? Here are some ways to grow your money
  • Our in-depth review of the Always Pan
  • Top iPhone models we’ve tested and you should get
  • Are Apple AirPods Pro a great choice in 2023?
  • The best shower heads of 2023
Infoceptor
Home»Technology»WordPress»How to reset your WordPress admin password
WordPress

How to reset your WordPress admin password

Matthew DrummondBy Matthew DrummondDecember 28, 20233 Mins Read
Facebook Twitter LinkedIn Reddit Telegram WhatsApp Pinterest Email
Share
Facebook Twitter LinkedIn

If you lost or can’t remember your WordPress admin password, you can use several methods to reset it and we’ll cover them in this quick guide.

(Easy) lost your password link

The first method you should try if you’ve lost your password is to use the Lost your password? link on your WordPress website’s login page.

Head to https://yourdomain.com/wp-login.php (replace yourdomain.com with your actual domain name). Click the Lost your password? link below the login form:

This will take you to another form where you need to put in your username or your email address:

Once you fill in your username or email address, the password reset link will be sent to your email address, which you can click to go ahead and reset the password for the specified username.

(Medium) PHPMyAdmin password reset

This method is a bit more tricky, but not very complicated. To reset the admin password using the PHPMyAdmin application, log in to your cPanel control panel or your hosting control panel.

Under the Databases section, click the phpMyAdmin link:

Next, click on the desired database in the left frame:

Click on the wp_users table in the right frame (in this example, it’s called wphq_users as the prefix may vary):

Click the Edit button next to your admin username:

Paste or fill in your password in the Value field under the user_pass row, and select the MD5 option in the Function column. Click the Go button once ready to save changes.

(Advanced) password reset via theme file

This method is a bit more advanced as it requires an edit of the theme file.  

Log in to your cPanel control panel.

Click the File Manager under the Files section:

Edit the functions.php file for your active theme. If your WordPress website is your main website, the example path is:

/home/username/public_html/wp-content/themes/your_theme/functions.php

In our example, the path is:

/home/username/public_html/test2/wp-content/themes/twentytwenty/functions.php

Select the functions.php file with your mouse, and click the Edit button in the top menu ribbon:

On the second line, right after the <?php opening tag, insert the following code:

wp_set_password(‘password’,’admin’);

Replace the following values:

password – your new password

admin – your admin username

Once ready, click the Save Changes button to save the changes. 

Now you can log in to your WordPress dashboard with the temporary password you’ve set.

Change your password to the new password, and then remove line 2 from the functions.php file to avoid having your password reset each time you access your WordPress dashboard.

(Advanced) Emergency Password Reset Script

If none of the methods above work for you, you can try using the emergency password reset script.

There are a couple of caveats to using this script:

  • You need to know your admin username
  • It updates the admin password and sends it directly to the admin email address
  • In case you can’t receive emails to your admin email address – the password is still reset

Save the script from the following article to an emergency.php file, and upload it to your WordPress root directory (where the wp-config.php file resides).

Once completed, visit the https://yourdomain.com/emergency.php URL (replace yourdomain.com with the actual domain name).

Fill in the administrator username and the new password, and click the Update Options button. You will then receive a success confirmation message and an email to the administrator’s email address.

Make sure to remove the emergency.php file from your account on the password reset is completed.

People also viewed:

How to speed up WordPress by disabling WP-cron How to fix broken links on your WordPress website How to create a job board using WordPress Best WordPress plugins for metrics and analytics to measure traffic Best plugins to publish your podcast on WordPress
forgot password reset user username WordPress
Share. Facebook Twitter LinkedIn Reddit Telegram WhatsApp Pinterest Email
Previous ArticleBest business-class seats to reserve with points and miles
Next Article Best kitchen knife sets of this year
Matthew Drummond

Matthew is a Infoceptor Technology writer. Having worked as a systems administrator for over 15 years gives him unique insight into the inner works of technology. Ultimately his passion for writing brought him to share his technical expertise with the world.

Related Stories

How to speed up WordPress by disabling WP-cron

February 16, 2024

How to create a job board using WordPress

February 8, 2024

How to fix broken links on your WordPress website

December 29, 2023

Best WordPress plugins for metrics and analytics to measure traffic

October 5, 2023

Comments are closed.

Connect
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
  • YouTube
  • LinkedIn
  • Reddit
  • TikTok
Don't Miss
Flywheel Logo Reviews

Flywheel review in 2023

By Matthew Drummond

Flywheel is a fast-growing web host that offers high-performance WordPress hosting for agencies, designers, and developers.

Travel restrictions in Canada are different depending on where you're traveling from and to. Here's what you need to know before you go.

Canada: Traveling restrictions and what you need to know before you go

May 19, 2024
If you are planning a trip to Spain, there are some travel restrictions that must be taken into consideration.

Spain: Traveling restrictions and what you need to know before you go

May 19, 2024
Learn how to build wealth and financial security. This article will share steps you can take to build a reliable cash reserve that will grow over time.

Do you want to build wealth? Here are some ways to grow your money

May 18, 2024
  • Auto
    • Auto Reviews
    • Electric
    • Insurance
  • Business
    • Company
    • Government
  • Entertainment
    • Movies
    • Music
  • Finance
    • Credit Cards
    • Crypto
    • Market
    • Personal Finance
  • Food
    • Coffee
    • Drinks
    • Holidays
  • Health
  • Beauty
  • Fitness
  • Food
  • Medical
  • Home
  • Backyard
  • Bathroom
  • Bedroom
  • Cleaning
  • Furniture
  • Home Office
  • Kitchen
  • Life
  • Astrology
  • Family
  • Fashion
  • Outdoors
  • Personal
  • Pets
  • Apple
  • Audio
  • Domain Names
  • Gaming
  • Google
  • Power
  • Reviews
  • Samsung
  • Destinations
  • Gear
  • Services
  • Space
  • Tourism
  • Technology
  • Tutorials
  • Web Hosting
  • WiFi
  • WordPress
  • Travel
  • Shopping
  • Sports
  • Work
  • Stocks
  • Television
  • Web Hosting
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn Reddit TikTok
© 2026 Infoceptor

Type above and press Enter to search. Press Esc to cancel.