In some cases, when you need to do something in a WordPress website, but all you have is only access to WordPress database and FTP, and you cannot get the admin password from the database because it’s decrypted. All changes you have to make via some low level MySQL queries, it’s hard and easy mistaken. Joost de Valk has written a script for emergency access to WordPress dashboard by changing admin password or creating new user.
The script helps you to manage WordPress user accounts. You can change users’ details, including password, assign roles or creating brand new users. After that, you can use these account to access WordPress to do what you need to do.
Just download Emergency WordPress Access script from Yoast.com, upload it into WordPress directory (the root directory) via FTP, and run it. You’ll see a screen that allows you to Add a new user or change details for some existing users. As you can see it asks for the database password, it prevents other people from messing up your site when you accidentally leave the file online. Once you’ve selected a user or chosen to add a new one, and you’ve entered the correct database password, you’ll redirected to a page that you can edit user’s details or update existing user’s detail in the database.
Emergency WordPress Access script is a good way to make the development easier, especially when your clients don’t provide full information to you. It also helps us to change users’ password in case of forgotten. And of course, it’s a new and efficient way for us to manage users.