Title: No Access
Last modified: August 20, 2019

---

# No Access

 *  Resolved [rafataref](https://wordpress.org/support/users/rafataref/)
 * (@rafataref)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/no-access-18/)
 * Some of the scanning results was asking to delete files related to different 
   themes, and to revoke admin access because created outside WP,
    Mistakenley files
   deleted and admin revoked, no limited access to the admin, and also the administrator
   can’t see the plugins and themes in the dashboard. I tried to change the name
   of theme and to follow the instructions I received from word fence to my email.
   all without results.
 * please help

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [wfdave](https://wordpress.org/support/users/wfdave/)
 * (@wfdave)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/no-access-18/#post-11852082)
 * Hi [@rafataref](https://wordpress.org/support/users/rafataref/),
 * It sounds like the permissions for your administrator account was changed.
 * Can you run these two queries to restore administrative privileges?
 * `UPDATE wp_usermeta SET meta_value = 'a:1:{s:13:"administrator";b:1;}' WHERE 
   meta_key = 'wp_capabilities' AND user_id = (SELECT ID FROM wp_users WHERE user_login
   = 'admin');`
 * `UPDATE wp_usermeta SET meta_value = '10' WHERE meta_key = 'wp_user_level' AND
   user_id = (SELECT ID FROM wp_users WHERE user_login = 'admin');`
 * Remember to change `wp_usermeta` and `wp_users` if you use a different prefix(
   default is `wp_`)
 * Also remember to change `admin` if your username is not named admin.
 * Dave
 *  Thread Starter [rafataref](https://wordpress.org/support/users/rafataref/)
 * (@rafataref)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/no-access-18/#post-11852660)
 * Thanks for reply, But How to run them? Please help
 *  Thread Starter [rafataref](https://wordpress.org/support/users/rafataref/)
 * (@rafataref)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/no-access-18/#post-11852767)
 * I updated it using sql php myadmin, nothing changed
 *  Thread Starter [rafataref](https://wordpress.org/support/users/rafataref/)
 * (@rafataref)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/no-access-18/#post-11852936)
 * Solved
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘No Access’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [deleted files](https://wordpress.org/support/topic-tag/deleted-files/)
 * [limited access](https://wordpress.org/support/topic-tag/limited-access/)

 * 4 replies
 * 2 participants
 * Last reply from: [rafataref](https://wordpress.org/support/users/rafataref/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/no-access-18/#post-11852936)
 * Status: resolved