If have seen (and ignored for quite a while) this on 3 different multisite installations, one not even maintain be me. I do think that some circumstances/installations may lead to this error.
I have tried to create one missing table like this:
CREATE TABLE IF NOT EXISTS sc_629_slim_events
(
event_id
int(10) NOT NULL AUTO_INCREMENT,
type
tinyint(3) unsigned DEFAULT ‘0’,
event_description
varchar(64) DEFAULT NULL,
notes
varchar(256) DEFAULT NULL,
position
varchar(32) DEFAULT NULL,
id
int(10) unsigned NOT NULL DEFAULT ‘0’,
dt
int(10) unsigned DEFAULT ‘0’,
PRIMARY KEY (event_id
),
KEY idx_sc_629_slim_events
(dt
),
KEY fk_sc_629_id
(id
),
CONSTRAINT fk_sc_629_id
FOREIGN KEY (id
) REFERENCES sc_629_slim_stats
(id
) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;n
But mysql responds with:
160519 13:30:55 Error in foreign key constraint creation for table fak-sites
.sc_629_slim_events
.
A foreign key constraint of name fak-sites
.fk_sc_629_id
already exists.
Please advise how to proceed.