I gave my client the admin account to his wordpress install and I forgot to add an administrator user for myself. Now, I can no longer access the admin panel because they have changed their password. I have direct access to the database and was wondering if I could inject a new admin user via SQL?

  • Ask the client to add an admin account for you? Why do you need to inject data if you are permitted to access this site's database, or you own the server.
    – t31os
    Commented Nov 29, 2011 at 14:44
  • As I mentioned, I don't want to bother my client. Also, by "inject" I meant writing SQL directly to the DB. Commented Nov 29, 2011 at 22:32
  • Mentioned where? ... I think the answer you have from patnz covers it(everything you need)... just strikes me as a little strange is all..
    – t31os
    Commented Nov 29, 2011 at 22:53
  • My bad, thought I mentioned it but must have all been in my head... sorry about that. Commented Nov 29, 2011 at 23:02
  • I do that to... no worries.. ;)
    – t31os
    Commented Nov 29, 2011 at 23:20

1 Answer 1


Pretty easy to do from phpMyadmin. I've used this tutorial before successfully.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.