My website was crashed by hackers and i am trying to restore from my backup. i have deleted all old files and trying to restore from the backup. i copied all my WP files in public_html. after restoration of database it's throwing an error"You appear to have already installed WordPress.To reinstall please clear your old database table first". I am newbie to WordPress. could someone help me to fix this issue.
Thanks in advance.
My website was crashed by hackers and i am trying to restore from my backup. i have deleted all old files and trying to restore from the backup. i copied all my WP files in public_html. after restoration of database it's throwing an error"You appear to have already installed WordPress.To reinstall please clear your old database table first". I am newbie to WordPress. could someone help me to fix this issue.
Thanks in advance.
Share Improve this question edited Sep 5, 2018 at 13:56 Fayaz 9,0172 gold badges33 silver badges51 bronze badges asked Sep 5, 2018 at 7:27 SikkandarSikkandar 211 gold badge1 silver badge2 bronze badges1 Answer
Reset to default 1Open wp-config.php
(which is in your new WordPress installation's main directory) in a text editor.
Locate the line that reads $table_prefix = 'wp_';
Modify the value of $table_prefix
to the prefix in your backup database and Save. Refresh the setup page of your WordPress installation.