• Hello, I deleted a user in wordpress website by mistake. Can I restore the user and its files from the database?
    I dont want to restore a backup I just want to restore the user and its files from the database may be.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What files might the user have? Please explain this before trying anything else.

    Do you have a backup of your database? If there have been NO OTHER CHANGES in users (add/delete, password changes, etc.) since that backup, you could restore the wp_users and wp_usermeta tables.

    Thread Starter Tony

    (@frfvipy)

    @sterndata The user have pictures in the media library of WordPress

    • This reply was modified 2 years, 6 months ago by Tony.
    Thread Starter Tony

    (@frfvipy)

    @sterndata also I have added an audio files with a new user since my last backup

    • This reply was modified 2 years, 6 months ago by Tony.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    In that case, you need to create a new user and don’t try to restore anything,

    Thread Starter Tony

    (@frfvipy)

    @sterndata But I need the pictures this is very important to me. Isn’t there another way to solve this?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are the pictures really deleted? Do you see them in wp-content/uploads/whatever? Or in the media library?

    When you deleted the user, did you assign the content to anyone else?

    Thread Starter Tony

    (@frfvipy)

    @sterndata Yes the pictures really deleted I can not see them in wp-content/uploads/whatever Or in the media library

    When I deleted the user, I did not assigned the content to anyone else.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    In the words of the Guardian Knight in the crypt with all the Grail cups, “He choose poorly.” 🙁

    I think you need to restore the entire site (files and DB) from a recent backup and then scramble to add whatever content was added after that backup. This is beyond tweaking a few tables.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘User removed’ is closed to new replies.