Create a new WordPress admin user in the database


You can create a new WordPress admin user from within the database.

  1. Log into phpMyAdmin

 Note: If you're using cPanel Hosting, you must select the database for your WordPress site in the left-hand column before proceeding to the next step

  1. Click the _users table
  2. Click the Insert tab
  3. Fill in the following fields.
  4. Click the Go button
  5. Click the _usermeta table
  6. Click the Insert tab
  7. Fill in the following fields:

 Note: If you use WordPress Hosting, or setup your site to use custom database table prefixes, then you need to include that prefix here (EX: wp_YourCustomPrefix_capabilities). You can see the prefix in name of each database table in the left-hand column on the current page.

a:1:{s:13:"administrator";s:1:"1";}
  1. Click Go
  2. Click the Insert tab again
  3. Enter the following information:
  4. Click the Go button.

You can now login with the new Admin user.



Article ID: 894
Created On: Wed, Jun 3, 2020 at 11:07 PM
Last Updated On: Wed, Jun 3, 2020 at 11:07 PM

Online URL: https://www.heartinternet.uk/support/article/create-a-new-wordpress-admin-user-in-the-database.html