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?

link|improve this question

feedback

1 Answer

up vote 1 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.

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

Your Answer

 
or
required, but never shown

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