How to create a new WordPress administrator in the database

Matthias Suttner, 9 September 2020

How to create a new WordPress administrator in the database

Have you accidentally changed your administrator password? Or reduced your user rights? Or do you want to add a new user directly via the database?
That’s no problem at all! In this article, we’ll show you how to create a new administrator in your database and thus regain full access. You’ll then be able to use and optimise your website again without any issues.

CREATING A NEW ADMINISTRATOR FOR WORDPRESS VIA THE DATABASE

  • Please set the following values in advance:
    • Username
    • Email address
    • Password
    • Prefix for your WordPress installation (see database)
  • Use the form below to generate your SQL query (link with anchor)
  • Log in to your WordPress database (e.g. via your hosting provider or phpMyAdmin)
  • Paste the query, run it, and you’re ready to go!

You can then log back into your WordPress admin panel using your new username and the password you have set.
Within this backend, under ‘Users’, you can edit the details as usual or add to them.

    This page is protected by reCAPTCHA. Google’s Privacy Policy and Terms of Service apply.

    Can’t sort out the problem on your own? Or do you want to plug any potential security gaps? Then get in touch with the Golden Web Age team for a bespoke, no-obligation quote! Our WordPress experts are always on hand to offer advice and support >> Enquiry?

    Matthias Suttner

    Matthias is our BI & Tracking Specialist. Thanks to his experience, he has often been able to identify patterns in data and, as a result, significantly boost turnover for various companies.

    Do you need help with a project?
    Book a free initial consultation now