If you're looking for the administrator password for your WordPress site, you'll need to access the database. The password is stored in the user_pass column of the wp_users table, which can be queried via MySQL command line or phpMyAdmin. To do this, you'll need to get your database credentials from your wp-config file, php. The username of your database users can be found in the wp_users table of the WordPress database. The password won't be in plain text, so if you've forgotten it, you'll need to reset it.
You can learn how to change your WordPress username and password from the web-based WordPress administration page or directly in the database. To ensure your site's security, it's important to adhere to WordPress password security best practices. If you want posts to be displayed as created by “Administrator”, you can set it to Display Name on the Edit Profile page later. For any user other than the administrator user, you can log in to WordPress and update their password. To do this, you'll need to re-download the WordPress functions file via FTP and delete the line of code.
There are several steps you can take to improve the security of your WordPress password and prevent your site from being hacked. If your web host uses cPanel, the link to phpMyAdmin is usually found in the database section. If you get the username or email address associated with your profile successfully connected, a password reset email will be sent to that address. If a hacker has your username or email address and a password associated with it, they can use that information to try and sign in to other websites, apps, or accounts. Even if you have access to hosting account passwords (ftp passwords, etc.), they won't help if you don't know any passwords for the wp-admin panel. To change a user's password, log in to WordPress and find their name on the list of users.
As passwords are directly connected to website security, it's important to use strong WordPress password security to protect your site. In this situation, you won't have access to the other user's old password, so you'll have to reset it. If this doesn't work, you'll need to restore your site from a backup before editing the database and try resetting your password using another method.