Project

General

Profile

Actions

Bug #20065

closed

MYSQL Replication breaks because of lack of AUTO_INCREMENT PK in cache_pagesection

Added by Lukas Taferner about 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-02-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

recently I discovered that in a high load environment with multiple replicating MYSQL hosts the replication tends to break beacuase of lack of an auto incrementing primary key in the table cache_pagesection.

Here is my solution:

ALTER TABLE cache_pagesection DROP PRIMARY KEY;
CREATE TABLE cache_pagesection (
uid int(11) NOT NULL auto_increment PRIMARY KEY,
KEY pageid_mphash (page_id,mpvar_hash),
PRIMARY KEY,
);

Tho only problem seems to be a limitaiton of the SQL compare script, which is unable to handle PK Changes.

best regards,

Lukas Taferner

(issue imported from #M10508)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20502: MYSQL Replication breaks because of lack of AUTO_INCREMENT PK in cache_treesectionClosed2009-05-25

Actions
Actions

Also available in: Atom PDF