bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Add admin powers to account in mysql?

(6 posts)
  • Started 7 months ago by clockworkjoe
  • Latest reply from clockworkjoe
  • This topic is resolved

Tags:

  1. 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?

    Posted 7 months ago #
  2. 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;

    Posted 7 months ago #
  3. The wordpress database has a different prefix than BB, so there's no bb_capabilities.

    Posted 7 months ago #
  4. 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?

    Posted 7 months ago #
  5. 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);
    Posted 7 months ago #
  6. That worked! Thanks a bunch.

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.