Title: ADMIN user deleted
Last modified: August 20, 2016

---

# ADMIN user deleted

 *  [robsalmon](https://wordpress.org/support/users/robsalmon/)
 * (@robsalmon)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/admin-user-deleted/)
 * the ADMIN usre was deleted from my site ID 1
    it is required by a plug in I use
   can it be reinstalled at the wp data base wp_users ?

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

 *  [leethompson](https://wordpress.org/support/users/leethompson/)
 * (@leethompson)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/admin-user-deleted/#post-3003729)
 * You will need to follow this as a guide [http://codex.wordpress.org/Resetting_Your_Password](http://codex.wordpress.org/Resetting_Your_Password)
   Instead of an update you will need to do a Insert.
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/admin-user-deleted/#post-3003734)
 * I would be very careful about ID 1, this is an ID that hackers love ……
 *  [Birgir Erlendsson (birgire)](https://wordpress.org/support/users/birgire/)
 * (@birgire)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/admin-user-deleted/#post-3003764)
 * you could do it with PHP, try something like
 *     ```
       $u = new WP_User($user_id);
       $u->set_role('administrator');
       ```
   
 * where you change the `$user_id` value.

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

The topic ‘ADMIN user deleted’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [Birgir Erlendsson (birgire)](https://wordpress.org/support/users/birgire/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/admin-user-deleted/#post-3003764)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
