Sometimes you have to take an alternative step to gain access to your WordPress dashboard. Probably you are unable to receive a password reset email, or you lost your password. There are two options to regain access to your WordPress account.
- Submit our Free Quote form and one of our experts can do it for you for a fee.
- Follow the instructions in the article below and do it yourself. You need to have cPanel access.
WordPress Premium Support
Our support experts can perform the following services for you for a fee:
- Reset your WordPress password
- Update a user’s email address in the WordPress database
- Create a new WordPress admin user
- Delete old or unused users
- Replace a missing wp_users table
Create a new WordPress admin user in the database
Use this method to create a new WordPress admin user if your previous user role was admin too.
- Log into phpMyAdmin
- Click the _users table
- Click the Insert tab
- Fill in the following fields.
- ID is any number you choose
- user_login is the username for accessing the WordPress Dashboard.
- user_pass is the password for the user. Make sure to select MD5 in the functions menu
- user_nicename is the nickname for the user
- user_email is the email address you want to associate with this user
- user_registered is the date and time for when this user is registered
- user_status should be set to 0
- display_name is the name that will be displayed for this user on your site
- Click the Go button
- Click the _usermeta table
- Click the Insert tab
- Fill in the following fields:
- user_id is the ID you entered in the previous step
- meta_key should be the phrase wp_capabilities
- meta_value should be
- Click Go
- Click the Insert tab again
- Enter the following information:
- user_id is the same number you entered in the previous step
- meta_key should be the phrase wp_user_level
- meta_value should be the number 10
- Click the Go button.
Now you are able to log in with your new WordPress admin user.
Video with the steps
You have to rename wp_capabilities and wp_user_level with your database table prefix. In my case for the video was tested_ so the above will be renamed to test_capabilities and test_user_level. In any other case, you will not be able to log in to your WordPress site.
If you are familiar with super tool WP-CLI then you can create an admin straight from your console in just a single line.
wp user create bob email@example.com --role=administrator