
MySQL
Two-way sync between MySQL and your other systems.
Introduction
MySQL is a widely-used, open-source relational database management system that uses SQL (Structured Query Language) for data manipulation. Known for its speed, reliability, and ease of use, MySQL is the foundation for many popular applications and websites. It powers critical backend systems and supports large-scale enterprise solutions.
Now you can seamlessly synchronize data across all your CRM and database systems using Stacksync!
Things to keep in mind
During setup
-
All MySQL 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 MySQL 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:
Stackync creates deterministic triggers for internal logging and syncing.
By default, MySQL 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 our MySQL snippets collection for troubleshooting tips.
After setup
Renaming schemas, 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.