
MariaDB
Two-way sync between MariaDB and your other systems.
Introduction
MariaDB is a popular open-source relational database management system that originated as a fork of MySQL. It remains fully compatible with MySQL while offering additional features and improved performance in some scenarios. Itβs widely used in enterprise and cloud environments for its flexibility, speed, and reliability.
Now you can seamlessly synchronize data across all your CRM and database systems using StacksSync!
Things to keep in mind
During setup
-
All MariaDB existing tables must have a (single) primary key
We use the primary key to keep your data in sync.
The primary key must be a single column; composite primary keys are not supported. -
Primary keys must be auto-generated
Ensure your primary keys are auto-generated by your database (e.g. useAUTO_INCREMENTfor primary keys). -
Check user permissions
Verify that the MariaDB user used by Stacksync to connect to your database has sufficient privileges (e.g.,SELECT,INSERT,UPDATE, andDELETE) on the tables you want to map. -
Run this query to check if Stacksync can create triggers:
SELECT CASE WHEN @@log_bin = 0 THEN 'β Binary logging is OFF β No issues.' WHEN @@log_bin = 1 AND @@log_bin_trust_function_creators = 1 THEN 'β Binary logging is ON β Trust is enabled β All good.' ELSE 'β οΈ Binary logging is ON but trust_function_creators is OFF β Please fix to allow trigger creation.' END AS status;if you see β οΈ, it means you need to update the server settings (requires admin access).
SET GLOBAL log_bin_trust_function_creators = 1;Reason:
Stacksync creates deterministic triggers for internal logging and syncing.
By default, MariaDB restricts non-super users from creating triggers when binary logging is enabled β unlesslog_bin_trust_function_creatorsis set toON.Feel free to reach out to us at hello@stacksync.com.
If a table in your database does not appear in Stacksync, one of the above conditions is likely not met. Check out our MariaDB snippets collection for troubleshooting tips.
After setup
Renaming schema, tables, or columns will break Stacksync configuration. But don't worry, we've got you covered! Refer to our Update Sync Configuration guide for detailed steps to address this.