Feature #25739

Make mysqldump files install tool compatible

Added by Rens Admiraal about 2 years ago. Updated over 1 year ago.

Status:New Start date:2011-04-04
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
TYPO3 Version: Tags:
Votes: 1 (View)

Description

We use an export script (see attachment) in typo3conf/export to make dumps of specific tables into typo3conf/*.sql files. This way we can for example easily export templavoila tables to another instance of a website.

Problem with DBAL is that the default mysqldump file output can't be imported in the install tool anymore. Even with the extra parameters in the documentation of DBAL it's no fit.

So I extended the script a bit to remove charset declarations (which don't matter in our case anyway), add a DROP TABLE command automatically and remove the backticks in CREATE TABLE definitions.

The actual cleanup methods accepts a file, and writes the cleaned up content back into the same file.

Feel free to use this script if useful.

config.yaml (725 Bytes) Xavier Perseguers, 2011-04-07 22:29

dump.php (2.5 kB) Xavier Perseguers, 2011-04-07 22:29

History

Updated by Xavier Perseguers about 2 years ago

Updated by Xavier Perseguers about 2 years ago

  • File deleted (export.zip)

Also available in: Atom PDF