Project

General

Profile

Actions

Bug #25067

closed

Add compatibility with MySQL 5.5: Replace "TYPE" with "ENGINE"

Added by Christian Hernmarck about 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Problem:
When using MySQL 5.5 or newer you cannot install the default tables in the install tool. Trying to create them the install tool uses the "type" table option to specify the table storage engine. This option is no longer supported in MySQL 5.5.

Error message:

 "Removed Features:
 The TYPE table option to specify the storage engine for CREATE TABLE or  ALTER TABLE (use ENGINE)." 

Fix:
Change the sqlparser (class.t3lib_sqlparser.php): Do not use "TYPE", but "ENGINE".
line 1823:
// Make query: $query = 'CREATE TABLE ' . $components['TABLE'] . ' ( ' . implode(', ', $fieldsKeys) . ' )' . ($components['tableType'] ? ' TYPE=' . $components['tableType'] : '');

(issue imported from #M17629)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #50466: MySQL: Use ENGINE instead of deprecated TYPE for storage-engineClosedStefan Neufeind2013-07-26

Actions
Actions

Also available in: Atom PDF