Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have an user in a Wordpress Multisite installation and have access to the Mysql database, I would like to give myself super-admin rights to access the wp-admin/network page. Where can I do it on Mysql?

I looked the database and I think the wp_usersmeta table is the one, but I have no idea how Wordpress manages the roles within the database.

Any help?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

This is actually stored in the {prefix}sitemeta table. The meta key is site_admins, and it's a serialized PHP array of usernames.

share|improve this answer
    
Thanks! I added my username to that array and it worked. –  romulodl Jan 26 '12 at 15:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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