---
title: "WordPress Tip: When you Forget your WordPress Username and Password"
date: 2010-08-10
description: "Tom Johnson’s blog on technical writing and AI: agent skills, docs for AI agents, docs-as-code, tech comm careers, and an API documentation course."
canonical_url: https://idratherbewriting.com/2010/08/10/wordpress-tip-when-you-forget-your-wordpress-username-and-password/index
---

> For AI agents: a documentation index is available at https://idratherbewriting.com/llms.txt. Markdown versions of all pages are available by appending .md to any page URL.

# WordPress Tip: When you Forget your WordPress Username and Password

In working with clients on WordPress projects, I routinely run across people who forget their WordPress username and password. Fortunately, if you still remember the FTP username and password, just upload [this "emergency.php" script](https://yoast.com/emergency-wordpress-access/) from Yoast to your root directory, go to http://yoursite.com/emergency.php, and voila, you can change your WordPress username and password. You may need to download the wp-config.php file to grab the database password, but that's it.
