Quantcast
Channel: WordPress.org Forums » [Wordfence Security - Firewall, Malware Scan, and Login Security] Support
Viewing all articles
Browse latest Browse all 33039

Wordfence on "[Plugin: Wordfence Security] Table wp_wfstatus has no PRIMARY or UNIQUE key!"

$
0
0

While I disagree with "some tables are poorly designed" I'm happy to help. This was a design choice by us because the table simply doesn't need a primary key. But apparently this backup software does.

Two options come to mind:

1. Exclude wp_wfStatus from all backups. You don't need to back this up. If your site fails as long as you can create the empty table Wordfence will function fine. The only thing you lose is the status messages of previous scans and Wordfence activity.

2. Run the following SQL which will create a primary key on that table. It won't interfere with Wordfence function. Just remember that if you remove and reinstall Wordfence you need to recreate this primary key:

alter table wp_wfStatus add id bigint UNSIGNED NOT NULL auto_increment PRIMARY KEY;

Regards,

Mark.


Viewing all articles
Browse latest Browse all 33039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>