Home / Questions / How do I get back into WordPress when no admin user exists?
How do I get back into WordPress when no admin user exists?
If every admin account was removed or downgraded, you can still regain access. Create a new administrator in the database or ask your host for help.
Sometimes the only admin account is deleted, or its role is changed by a plugin or a mistake. You then cannot manage the site, even though your login works.
Option 1: phpMyAdmin
Open the wp_users table and the wp_usermeta table. Find your user and set the capabilities value to the administrator role. Back up the database before any edit.
Ready to act on this?
Get a written review of your site, or send us your question and we will reply within 24 hours.
Option 2: a small file
Add a temporary admin creation script to the theme, run it once, and delete it right away. Do not leave such a file on a live site.
Afterwards, create a second administrator and keep both accounts secured. For help, contact us.
Related services
Related questions
Not sure where your site stands?
Send us the details and we will reply within 24 hours with a clear next step.