when connect to mysql source it show Error: Check ...
# ask-ai
j
when connect to mysql source it show Error: Check query failed with: The variable "log_bin" should be set to "ON", but it is "OFF"
k
The error message “The variable 'log_bin' should be set to 'ON', but it is 'OFF'” indicates that your MySQL server does not have binary logging enabled. For Airbyte’s MySQL source connector—especially when using CDC (Change Data Capture) mode—binary logging (
log_bin
) must be enabled on the MySQL server. Without this, Airbyte cannot track changes in your database. To resolve this, you need to enable binary logging on your MySQL server. This typically involves: 1. Editing your MySQL configuration file (e.g.,
my.cnf
or
my.ini
) to include:
Copy code
[mysqld]    log_bin = mysql-bin
2. Restarting the MySQL server for the changes to take effect. After enabling
log_bin
, the Airbyte check should pass, and you’ll be able to use CDC features. If you are not using CDC and only need standard replication, binary logging is not required, but for CDC it is mandatory. This requirement is also reflected in user discussions and troubleshooting documentation for Airbyte’s MySQL source connector [MySql Connection failure with CDC enabled](https://discuss.airbyte.io/t/3318). If you do not have access to change MySQL server settings, you will need to contact your database administrator.