title: Changing a wordpress user to an admin
body: <p>I am trying to set up a local copy of a production Wordpress blog. On production, I am a user but not an admin, so I am trying to change myself to an admin locally. I was following the directions on <a href="http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database" rel="noreferrer">this</a> blog post to make myself an admin, so I performed the following SQL queries:</p>
  
  <pre><code>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);
  </code></pre>
  
  <p>Then I cleared my browser cookies and logged in again, but when I tried to navigate to <code>http://localhost/wp-admin</code> I still got "You do not have sufficient permissions to access this page." I even went so far as to delete my APC cache files and reload Nginx and PHP-FPM, which also didn't change anything. Does anyone know of anything else to try?</p>