Compose Database-as-a-Service Help and Documentation

Everything you need to know about Compose, Hosted or Enterprise, is here in our help system. Whether you run one database for your businesses' sole application or six different databases to support an entire corporation, we've got the information you need.

Replication on Compose for MySQL

Compose for MySQL uses the InnoDB storage engine to provide group replication. As a result, there are a few helpful things to know about how your Compose for MySQL deployment works.



All replicated tables need a Primary Key

The InnoDB storage engine executes all transactions and then checks for conflicts when transactions are committed to the database. Conflicting transactions on data are then resolved through rolling back some of the transactions. The engine uses the primary keys as the unique identifier of the data, to ensure that transactions and replication maintain consistency.

Importing MySQL data

Since Compose for MySQL takes advantage of the group replication through the use of InnoDB tables, this affects interoperability with other variants of the MySQL database, such as older versions or forks of the open source database.

If you have a MySQL database/dump that has been created in a MyISAM-based environment, trying to import it into Compose will fail. The logs will contain the error message "The table does not comply with the requirements by an external plugin".

To avoid this issue, you will have to modify the source of the import data. This can be achieved by converting the source database to InnoDB before exporting and then importing into a Compose for MySQL deployment.

More Information

Read more about the InnoDB Storage Engine and the replication requirements in the MySQL documentation.

Still Need Help?

If this article didn't solve things, summon a human and get some help!

Updated 2 years ago

Replication on Compose for MySQL

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.