2013-11-06, 02:36 AM
Wondering where the profile data is stored, I made a backup before something funky happened when changing the only admin account's user group and need to restore just this data via FPT.
UPDATE `mybb_users` SET `usergroup` = '4' WHERE `uid` = '1';
UPDATE `mybb_usergroups` SET `cancp` ='1' WHERE `gid` = '4';
DELETE FROM `mybb_datacache` WHERE `title` = 'usergroups';
$config['super_admins'] = '1';
(2013-11-06, 03:40 AM).m. Wrote: [ -> ]assuming that your user id is 1 , you have not changed the default group IDs , and your database tables prefix is mybb
below set of SQL queries should set back your access to admin panel
UPDATE `mybb_users` SET `usergroup` = '4' WHERE `uid` = '1';
UPDATE `mybb_usergroups` SET `cancp` ='1' WHERE `gid` = '4';
DELETE FROM `mybb_datacache` WHERE `title` = 'usergroups';
./inc/config.php file consists of below line. it gives super administrator status for user 1
$config['super_admins'] = '1';