Skip to content

MySQL Data Source Connections

Here is a programmatic example of a connection to a MySQL database.

  'host'='<A cloud url or host accessible from the application>',
  'port'='<Port to connect to the DB>',
  ''='<Default database to connect to>'

Enable Query Pushdown

To enable transparent query pushdown, add mysql to the list of enabled engines in the OKERA_CTE_REWRITE_ENABLED_ENGINES configuration setting. Multiple engines can be enabled (in addition to the ones enabled by default) by providing them as comma-separated values in this configuration setting.

For example:

OKERA_CTE_REWRITE_ENABLED_ENGINES: dremio:direct,redshift,mysql