CTP can help you backup and re-create/port the CTP database. From a backup file, you can re-create the exact same database in a new location, or you can port it to an alternative database type (MySQL, HyperSQL, Oracle). For example, you could back up a HyperSQL database, then re-create it as an Oracle or MySQL database. Or, you could capture the current state of a database and use that for a rollback.
Creating a Backup
- Choose Administration> Database Configuration.
- Click the Backup Database button. A dialog will open with a link to the zip file that’s created for the backup.
- Click the file link and save that backup file to a convenient location.
Creating a Database from a Backup
- Choose Administration> Database Configuration.
- Click the Create Database button.
In the Create Database dialog, indicate the desired database type and the connection settings for the new database.
- At the bottom of the dialog, click Choose File, then select the location of the backup zip file.
- Click Create.
A new database will be created in the specified location, then it will be populated with the data saved in the backup file. After a new database is successfully created, CTP will ask you if you want it to delete the previous database (the database whose connection settings are shown in the main page behind the dialog).
Backing Up Databases with Large Files (MySQL Database Only)
- Find the my.cnf/my.ini file for your installation of MySQL. For MySQL 5.7, see http://dev.mysql.com/doc/refman/5.7/en/option-files.html. For other versions, see the appropriate manual at http://dev.mysql.com/doc/index.html.
- Edit the file to use the parameter settings outlined below.
- Restart the MySQL Service
- innodb = ON
- innodb_log_file_size = 5242880000 // This must be set to be 10x the largest content being loaded for the public marketplace.
- max_allowed_packet = 1G
- innodb_file_per_table = 1
- innodb_file_format = Barracuda
- max_allowed_packet = 1G
- max_allowed_packet = 1G