1. Knowledge Base
  2. >
  3. Results
  4. >
  5. How to Change Your WordPress Login Username

How to Change Your WordPress Login Username

There are several options for creating a new username in WordPress if you do not want to use its default login username. This article discusses the different methods on how to change the WordPress username.

We recommend making a backup of your WordPress from within the WordPress dashboard before modifying the database. For instructions on how to backup WordPress, please refer to the following article from WordPress: WordPress Backups.

Please click the links below to see each option's instructions.

Option 1: Via the WordPress Dashboard

This option will create an additional WordPress user since you cannot edit a username from within the WordPress Dashboard. If you do not wish to create an additional user, follow the instructions in Option 2 to edit your username through phpMyAdmin.

  1. Log in to WordPress Dashboard by going to:
    • Replace example.com with your actual domain name.

  2. Navigate to the Users sections, then click on Add New.

    WordPress Add New User

  3. You will be redirected to the Add New User page. Fill out the required information below. 

    Add new user page

    • Create a new Username.
    • Enter your Email address.
    • Complete the fields for first name, last name, and website.
    • Create a new password and enter it in the next two fields.
    • Check the box to Send Password to the new user via email.
    • Select the role of the new user.
  4. Click Add New User.

To know more about WordPress User Roles, please check out our blog: How To Use WordPress User Roles To Improve Security.

Option 2: Via phpMyAdmin

To edit your WordPress login username in phpMyAdmin, find out which database is associated with the installation of WordPress that you wish to change; then follow the instructions below.

  1. Log in to cPanel.
  2. In the Files section, then click on the File Manager icon.

    File Manager Icon

  3. Click on the Settings button on the top-right corner.

    File Manager Settings button

  4. From the pop-up screen, select Document Root, then choose your WordPress domain name.

    Select webroot

  5. Check the box for Show Hidden Files (dotfiles).

    cPanel show hidden files

  6. Click Save.

Back to the File Manager, please do the following:

  1. Look for the wp-config.php file.

    wp-config file

  2. Right-click and select Code Edit
  3. Click Edit when the screen pops up.
  4. Take note of the database name. It will look similar to this:

    define('DB_NAME', 'domain_wrdp1')

    (Domain will be a prefixed form of the actual domain name or cPanel username being used.)

Go back to the cPanel homepage, then proceed with the following instructions.

  1. In the Databases section, click phpMyAdmin.

     HostGator cPanel phpMyAdmin

  2. From the left-hand navigation menu, click on the appropriate database name from Step 10

    Select database name

  3. From the left-hand navigation menu, click wp_users.


  4. In the table next to the database login information, click Edit.

    edit wp user

  5. Locate the user_login column, click on your current username and change the name to something you prefer.

    change user logi

  6. Click Go.

You should now be able to log in to your WordPress site with your new username.

Option 3: Via Softaculous

  1. Log in to your cPanel.
  2. Look for the Software section, then click on Softaculous Apps Installer.

    cPanel - Software - Softaculous Apps Installer Icon

  3. This will open the Softaculous interface. At the top of the page, it will present you with options for your installed scripts. Click on the Installations box.

    cPanel - Softaculous Apps Installer - Installations

  4. Locate the domain you wish to update, then click the pencil icon.

    Softaculous Edit Installation

  5. Navigate to the  Admin Account box, then enter the desired username in the Sign-on Username box.

    Softaculous Sign-on Username

Need additional assistance? HostGator's Support is here to help. Please contact us via phone or Live Chat so we can assist!