具体操作:
1、将UID5、6分别改为UID3、4;
现仅列出UID5改3的,其他同理。
UPDATE `cdb_access` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_adminsessions` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_attachments` SET `aid`=3 WHERE `aid`=5;
UPDATE `cdb_banned` SET `id`=3 WHERE `id`=5;
UPDATE `cdb_blogcaches` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_buddys` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_creditslog` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_favorites` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_memberfields` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_members` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_moderators` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_modworks` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_onlinetime` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_orders` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_paymentlog` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_posts` SET `authorid`=3 WHERE `authorid`=5;
UPDATE `cdb_promotions` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_ratelog` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_threads` SET `authorid`=3 WHERE `authorid`=5;
UPDATE `cdb_threadsmod` SET `uid`=3 WHERE `uid`=5;
UPDATE `cdb_validating` SET `uid`=3 WHERE `uid`=5;
2、再UID14改为UID5;
具体更改方法见1。
3、指定新注册用户的UID起始为6。
ALTER TABLE `cdb_members` AUTO_INCREMENT =6