Wordpress转移数据表后出现"You do not have sufficient permissions to access this page"的解决方法

根据自己的新的表前缀, 执行如下两条SQL

UPDATE `wpen_usermeta` SET `meta_key` = REPLACE(`meta_key`, 'wp_', 'wpen_');
UPDATE `wpen_options` SET `option_name` = 'wpen_user_roles' WHERE `option_name` = 'wp_user_roles' AND `blog_id` = 0;

Execute the below queries. Modify the table prefix in the SQL according to your installation before run it.

UPDATE `wpen_usermeta` SET `meta_key` = REPLACE(`meta_key`, 'wp_', 'wpen_');
UPDATE `wpen_options` SET `option_name` = 'wpen_user_roles' WHERE `option_name` = 'wp_user_roles' AND `blog_id` = 0;

posted on 2012-01-20 17:19  Milton  阅读(383)  评论(0编辑  收藏  举报

导航