I am trying to create a local copy of Wordpress blogs. In production, I am a user, but not an administrator, so I'm trying to change myself to an administrator locally. I followed this on the blog to make myself an admin, so I ran the following SQL queries:
INSERT INTO usermeta(user_id,meta_key,meta_value) VALUES(376, 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}'); INSERT INTO usermeta(user_id,meta_key,meta_value) VALUES(376, 'wp_user_level', 10);
Then I cleared the browser cookies and logged in again, but when I tried to go to http://localhost/wp-admin , I still got "You do not have sufficient permissions to access this page." I even went so far that I deleted my APC cache files and reloaded Nginx and PHP-FPM, which also did not change anything. Does anyone know anything else to try?
source share