Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add admin powers to account in mysql?

  • @clockworkjoe

    Member

    I messed up when I installed BBpress on my wordpress site initially so that wordpress database integration didn’t work. I’ve fixed it though with one mistake. My wordpress admin account does not have admin powers for BBpress and the current BBpress admin account won’t work since BBpress now only looks at the wordpress database. I can access the mysql database directly through cpanel and phpmyadmin. How do I edit my account entry so it has bbpress admin powers?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @beer

    Member

    You can try this:

    UPDATE bb_usermeta SET meta_value = ‘a:1:{s:9:”keymaster”;b:1;}’ WHERE meta_key = ‘bb_capabilities’ AND user_id = 1;

    @clockworkjoe

    Member

    The wordpress database has a different prefix than BB, so there’s no bb_capabilities.

    @clockworkjoe

    Member

    Here’s the current capabilities of the admin account

    a:1:{s:13:”administrator”;b:1;}

    Can i just change this so it has both wordpress and bbpress admin powers?

    @sambauers

    Participant

    If admin’s user_id is not 1, then adjust that value. Also your table may be called “wp_usermeta”:

    INSERT INTO bb_usermeta VALUES (meta_value = 'a:1:{s:9:"keymaster";b:1;}', meta_key = 'bb_capabilities', user_id = 1);

    @clockworkjoe

    Member

    That worked! Thanks a bunch.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar