Link to home
Start Free TrialLog in
Avatar of Trevor Local
Trevor Local

asked on

Wordpress - create new admin user via phpmyadmin

Hi

Two parts:

How can I tell which WP user is an administrator via phpmyadmin?

I need to create a new admin user via phpmyadmin. The few sites I found that list the steps and the query seem to have problems with the code (as I read the comments on those pages). And I've not done a query before.

I've taken a backup of the database, and this site is on WordPress 3.8.5

thx
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Trevor Local
Trevor Local

ASKER

thanks for the explanation. I found the admin user, but I will still create my own as well.

I inserted the new row in wp_users, now trying to insert rows into wp_usermeta. I don't see an option or where to insert  the wp_capabilities key or wp_user_level.
If you are using PHPmyadmin then you are inserting into the user ID, key, and value columns. Wp_capabilities is the actual text you are inserting.

The user ID is the user ID.  The key is wp_capabilities, the value is that string from my original post.

Then repeat with user ID, wp_user_level, and 10
That was it....thanks again. Worked like a charm.
thanks!