Loading...

Knowledge Base
Save up to  70% off.  Start your website today!

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 WordPress from within your WordPress dashboard before modifying the database. For instructions on how to back up 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 your WordPress Dashboard by going to:
    http://example.com/wp-admin
    or
    http://example.com/wp-login.php
    • Replace example.com with your actual domain name.

  2. Navigate to Users, 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 the new user an email about their account.
    • Select the Role of the new user.
  4. Click Add New User.

To learn 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. Follow the instructions below.

  1. Log in to cPanel. There are two ways to access your cPanel.
    • Option 1: Access your cPanel directly.
    • Option 2: Access your cPanel via your Customer Portal.
      1. Log in to your Customer Portal.
      2. Click Hosting in the left-side menu.

        Customer Portal - Hosting menu

      3. If you have a single hosting package in your account, scroll down to the Quick Links section.


        If you have multiple hosting packages in your account, locate the hosting package you want to manage on the Hosting Packages page, then click its Manage button.

        Hosting tab - Manage button

      4. Under the Quick Links section, click the cPanel button.

        Hosting menu - Quick Links - Launch cPanel

  2. In the Files section, click on the File Manager icon.

    File Manager Icon

  3. Click on the Settings button in 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.
  7. Next, search for the wp-config.php file.

    wp-config file

  8. Right-click and select Edit
  9. Click Edit when the screen pops up.
  10. 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.)
  11. Go back to the cPanel homepage.
  12. In the Databases section, click phpMyAdmin.

    HostGator cPanel phpMyAdmin

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

    Select database name

  14. Next, look for wp_users, then click on it.

    wp-users

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

    edit wp user

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

    change user logi

  17. 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 cPanel. (See options above on how to log into 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

  6. Click the Save Installation Details button at the bottom of the page.
     


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

 

Did you find this article helpful?

 
* Your feedback is too short

Loading...