Change a WordPress username in PhpMyAdmin

In this guide, we show you how to change a user's login name in the database. This can be useful if you have forgotten your login name, or have a very general username like "admin" that could be easy for hackers to guess.

Tip: If you have more than one WordPress installation on your domain, make sure that you open the right table. You can check this by looking up the table prefix in wp-config.php. If in doubt, you can always contact the support.

  1. Open your database in PhpMyAdmin.
  2. Click on the database name in the menu to the left. This will unfold all tables.
  3. Click on the users table, for example, wp_users.
  4. Locate the user you want to change the login name for and click Edit.

Screenshot of phpMyAdmin.

  1. In the row called user_login, replace the content of the Value field with your new username.
  2. Click Go to save your changes. You can now log in with the new username.

Screenshot of phpMyAdmin.


Related articles:

Was this article helpful?

Can’t find what you are looking for?

Start a chat

It's the quickest way to get in touch, every day of the year.

Give us a call

Available on weekdays from 10am to 2pm (UTC).