This happens to us quite often at WP Expert. A client comes to us to help with their website, is able to to give us access to the hosting, but has no idea about giving us access to the WordPress adminThe admin (administrator) is the highest user role with full... More. In this case, we usually go through the databaseWhere all WordPress content, settings, and user data are sto... More to add a new adminThe admin (administrator) is the highest user role with full... More user for WordPress using PHPMyAdmin.
Alternatively, we could just find out what the main admin’s email is through the databaseWhere all WordPress content, settings, and user data are sto... More and either change it or reset the password, but to add a new adminThe admin (administrator) is the highest user role with full... More user for WordPress using PHPMyAdmin has a big advantage, it allows us to create our adminThe admin (administrator) is the highest user role with full... More access directly.
First step: Open PHPMyAdmin.
Second step: Go to the table wp_users (or yourprefix_users if you used yourprefix as prefix instead of the default one). This table is in the left hand side columns with all the table names.
Third step: Click Insert in the top menuMenu A collection of links (to pages, categories, or custom ... More.
Fourth step: Fill in the necessary information
Fifth step: Click on the “Go” button at the right-hand side on the bottom. There should be a green box with confirmation text that appaers in case of success. Otherwise, check if you did anything wrong.

Once the first part is done, you should give that new user the right permissions in order to make him an adminThe admin (administrator) is the highest user role with full... More.
First step: Go to the wp_usermeta table in the left hand side column menuMenu A collection of links (to pages, categories, or custom ... More. This table stores the attributes of the users.
Second step: Click Insert in the top menuMenu A collection of links (to pages, categories, or custom ... More.
Third step: Enter the following information for your new user:
Fourth step: Click on the button “Go” at the right hand in the bottom.
That’s it! You did it! You added a new user adminThe admin (administrator) is the highest user role with full... More through the databaseWhere all WordPress content, settings, and user data are sto... More on PHPMyAdmin. From now on, you will not be stucked from entering a WordPress install anymore.