There was a problem loading the comments.

How to Add New WordPress Logins via phpMyAdmin in cPanel

Support Portal  »  Knowledgebase  »  Viewing Article

How to Add New WordPress Logins via phpMyAdmin in cPanel

Follow these steps to add new WordPress logins via phpMyAdmin in cPanel:

 

STEP ONE: Find the Database Your Website is Utilising

 

1. Log in to your cPanel account.
For instructions on how to log in to your cPanel account, please click here.

e67bc52bc40656261a64477d109e88c36200cd6ec44572d26e421abce763aa4abd741ae6f2174bef?t=16a6aeb0a7b17c76830f158aac1b2d47

 

2. Under the Files section, click File Manager.

Screenshot: Files Section of the Control Panel

 

3. Go to the location of your wp-config file (most commonly in your public_html folder).

Screenshot: 'public_html' Folder

Screenshot: 'wp-config.php' File in the 'public_html' Folder

 

4. Once you have located your wp-config file, right-click the file, then click View.

Screenshot: Right-Click Drop-Down List for 'wp-config.php'

 

5. This will display the contents of the wp-config file. Look for the code that says: define( ‘DB_NAME’, ‘NameOfDatabase’ );

Note: The database name will be where ‘NameOfDatabase’ is mentioned in the above code. In this example, the database name is ‘tofumomo_wp194’.

Screenshot: Contents of the 'wp-config' File

 

STEP TWO: Access phpMyAdmin in cPanel

 

6. Under the Databases section, click phpMyAdmin.

Screenshot: Databases Section of the Control Panel

 

7. On the left side panel, select the database listed in your wp-config file. (In this case, the database is ‘tofumomo_wp194’, as per the previous screenshots.)

Screenshot: List of Databases on the Left-Hand Side Panel

 

8. Once you select the database, it will provide a list of tables. You need to locate the table that includes the list of users who can access your WordPress backend.

This table may have different names depending on how the website was built. It will usually contain the word ‘users’ in the title. In this scenario, the table name you want to select is ‘wpa9_users’. It will open a list of entries within the table ‘wpa9_users’.

Screenshot: List of Tables Highlighting 'wpa9_users'

 

9. You will see a row of tabs at the top of the page. Click the Insert tab. It will open up a page that allows you to insert new entries into the table.

Screenshot: Row of Tabs (Browse, Structure, SQL, Search, Insert, Export, Import, Operations, Triggers)

 

10. You can enter your new user login details on this page.

Refer to the list below for each required section.

user_login: The username for your new admin user. (In our example, it is ‘example’.)
user_pass: A password for the account and select MD5 in the Function dropdown list. (In this example, the password is ‘ExamplePassword65’.)
user_email: The email address for your new admin user.
user_registered: Select the date and time for registering this user.
user_status: Set this value to 0.
You can leave the ID row blank. The ID is a unique identifier and will be assigned automatically.

Screenshot: New WordPress Login Form

 

11. Once completed, click the Go button. 

Screenshot: Completed New WordPress Login Form

 

12. You will be taken to another page advising that the row/entry has been added.

Screenshot: '1 row inserted. Inserted row id: 2'

 

13. Click into the table name ‘wpa9_users’ again.

 

14. Look for the new WordPress login entry. Now, you must note down the ID value, so we can link the permissions for the account. In this case, the ID is “2”.

Screenshot: List of WordPress Users

 

15. Return to the left side panel and select the table with the word ‘usermeta’ in the name. In this scenario, the table name you want to select is ‘wpa9_usermeta’.

Screenshot: List of Tables on Left-Hand Side Panel Highlighting 'wpa9_usermeta'

 

16. It will list the entries within the table. Click the Insert tab at the top of the page.

Screenshot: Row of Tabs Highlighting 'Insert'

 

17. You can enter your new user login details on this page.

Refer to the list below for each required section.

user_id: Fill in the user ID you created in the previous step. (In this case, the ID was “2”.)
meta_key: The prefix of your table name followed by capabilities. By default, database tables usually start with wp_. However, in this case, the preluded text is wpa9_. Therefore, we would enter the text wpa9_capabilities.
meta_value: Fill in the field with a:1:{s:13:”administrator”;s:1:”1″;}

Screenshot: New User Login Details Form

 

18. Once completed, click the Go button.

Screenshot: Completed New User Login Details Form

 

19. You will be taken to another page advising that the entries have been added to the table.

Screenshot: 1 row inserted. Inserted row id: 16

 

You can now log in using your new WordPress login!

Did you find this article useful?