How to restore all items from trash

When deleting a user, WordPress displays a warning that unless you attribute the user’s posts to a new user, it’s posts will be deleted and you cannot undo those deletions.

That means the only way to restore the posts and media is to restore a backup of the WordPress instance or database which you hopefully have.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)