// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-debezium-mysql"]
= Debezium MySQL Connector
:page-aliases: extensions/debezium-mysql.adoc
:linkattrs:
:cq-artifact-id: camel-quarkus-debezium-mysql
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Capture changes from a MySQL database.
:cq-deprecated: false
:cq-jvm-since: 1.0.0
:cq-native-since: 1.0.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0##
endif::[]

Capture changes from a MySQL database.

[id="extensions-debezium-mysql-whats-inside"]
== What's inside

* xref:{cq-camel-components}::debezium-mysql-component.adoc[Debezium MySQL Connector component], URI syntax: `debezium-mysql:name`

Please refer to the above link for usage and configuration details.

[id="extensions-debezium-mysql-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-debezium-mysql[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-debezium-mysql</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-debezium-mysql-usage"]
== Usage
We cannot add the MySQL JDBC driver as a compile scope dependency of this extension because it is GPL2 licensed, and it
would be against the policy of the Apache Software Foundation.

Therefore, you have to add the dependency to your project yourself, as long as you are able to comply with its license
terms.

`quarkus-bom` (transitively included by `camel-quarkus-bom` and `quarkus-camel-bom`) manages a version
of `com.mysql:mysql-connector-j` compatible with Camel Quarkus. So you do not need to specify the version of the
driver when importing any of the aforementioned BOMs. The following should be sufficient for Maven:

[source,xml]
----
<dependency>
    <groupId>com.mysql</groupId>
    <artifactId>mysql-connector-j</artifactId>
</dependency>
----


[id="extensions-debezium-mysql-camel-quarkus-limitations"]
== Camel Quarkus limitations

While you can use any of the available Kafka offset stores in JVM mode, only the following offset stores are supported
in native mode:

* `org.apache.kafka.connect.storage.FileOffsetBackingStore`
* `org.apache.kafka.connect.storage.MemoryOffsetBackingStore`

Please file an https://github.com/apache/camel-quarkus/issues/new[issue] if you are missing some specific offset store
in native mode.

