Skip to main content

How to Add an Admin WordPress User with phpMyAdmin

By May 4, 2023February 3rd, 2025Technology

Follow these steps to add a new administrator wordpress user using PHPmyadmin. After completing these steps, you will able to log into your wordpress site like normal and with full admin privileges.

1. Navigate to your PHPMYADMIN portal.

2. Click “wp_users” in the left menu bar. The suffix “wp” might be replaced with a custom suffix if your site has been customized in that way.

3. Click “Insert” at the top of the window.

4. Click the top text field for ID and enter a unique user ID. You will be using this later, so either remember or save that somewhere.

5. Select the text field for user_login and enter a unique username without spaces. We recommend avoiding special characters as well

6. In the user_pass, enter a strong password for the account. This will be the same password you will use to login to the wp-admin portal.

7. IMPORTANT: In the dropdown next to your new password, select MD5 from the list of encryption options.

8. In the user_nicename field enter a nice username. Use dashes to replaces any spaces.

9. In the user_email field, enter your user’s email address.

10. Leave user_status as 0 or set to 0 if it defaults to another value.

11. Add your display name to the display_name field.

12. Click the “Go” button in the lower right. In some instances, you may need to click “go” again the next page shown. You should see a green banner letting you know that it worked.

13. Click “wp_usermeta” in the left menu.

14. Click “insert” at the top of the window.

15. Enter your user Id in to the user_id field. This is the same number from step 4.

16. In the meta_key field enter wp_capabilities

17. In the meta_value field enter a:1:{s:13:"administrator";b:1;}

18. Click the “Go” button. You may need to click “Go” on the next window that appears. If you get a green confirmation message, then that worked. 

A database management interface shows table names on the left, a query setup area on the right, and form fields for inserting data—like how to add a WordPress user—at the bottom. An orange circle highlights the Go button in the lower right corner.

19. Click “Insert” at the top of the window again. 

Screenshot of phpMyAdmin with an SQL query tab open, showing a successful row insertion message—ideal for illustrating how to add a WordPress user directly via SQL, with database tables listed on the left sidebar.

20. In the user_id enter the same number from step #4.

Screenshot of phpMyAdmin with an SQL query tab open, showing a successful row insertion message—ideal for illustrating how to add a WordPress user directly via SQL, with database tables listed on the left sidebar.

21. In the meta_key field enter:  wp_user_level

Screenshot of a phpMyAdmin interface showing a database table structure being edited—ideal for illustrating how to add a WordPress user directly in the database. The value 12345 is entered and highlighted with an orange cursor, with tables listed on the left.

22. In the meta_value field enter  10

A screenshot of a phpMyAdmin interface shows a database table structure with columns and data types on the left, input fields for editing row values in the center, and a large orange circle on the right—ideal when learning how to add a WordPress user manually.

22. Click the “Go” button. You may need to click “Go” on the next window that appears. If you get a green confirmation message, then that worked. 

A database management interface shows table names on the left, a query setup area on the right, and form fields for inserting data—like how to add a WordPress user—at the bottom. An orange circle highlights the Go button in the lower right corner.

You should be ready to login to your wordpress site through your normal login portal with either the email or username you created and the password you added!