MySQL connection

To access your data in MySQL, create a connection asset for it.

MySQL is an open-source relational database management system.

Supported versions

  • MySQL Enterprise Edition 5.0+
  • MySQL Community Edition 4.1, 5.0, 5.1, 5.5, 5.6, 5.7

Create a connection to MySQL

To create the connection asset, you need these connection details based on your deployment:

Common connectivity

  • Hostname or IP Address: The hostname or IP address of the database.
  • Port number: The port of the database.
  • Database (optional): The name of the database. If you do not enter a database name, you must enter the catalog name, schema name, and the table name in the properties for SQL queries.
  • Encoding (optional): The character encoding for your data. If not specified, the default character set of the database server is used. If you change the value, enter a valid character encoding, for example, UTF-8.
  • Zero Date time conversion: Enable Zero Date time conversion to a null value.
  • Use Proxy server (optional)

Select Use Proxy server to access the MySQL data source through a server proxy. Depending on its setup, a server proxy can provide load balancing, increased security, and privacy. The server proxy settings are independent of the authentication credentials and the personal or shared credentials selection. The server proxy settings cannot be stored in a vault.

  • Proxy hostname or IP address: The proxy URL. For example, https://proxy.example.com.
  • Server proxy port: The port number to connect to the proxy server. For example, 8080 or 8443.
  • The Proxy username and Proxy password fields are optional.

StreamSets

  • Hostname or IP Address: The hostname or IP address of the database.
  • Port number: The port of the database.
  • Database (optional): The name of the database. If you do not enter a database name, you must enter the catalog name, schema name, and the table name in the properties for SQL queries.

Credentials

You have specific authentication methods based on your deployment:

Commmon connectivity

  • Username: The username accessing the data source.
  • Password: The password associated with the username for accessing the data source.

Select Port is SSL-enabled (optional): Enable if the port is configured to accept SSL connections.

  • SSL certificate: The SSL certificate of the host to be trusted which is only needed when the host certificate was not signed by a known certificate authority.
  • Hostname in SSL certificate: Hostname in the SubjectAlternativeName or CommonName (CN) part of the SSL certificate.
  • Validate SSL certificate: Validate that the SSL certificate returned by the host is trusted.

StreamSets

  • Username: The username accessing the data source.
  • Password: The password associated with the username for accessing the data source.

Running SQL statements

To ensure that your SQL statements run correctly, refer to the MySQL documentation for the correct syntax.

MySQL setup

MySQL Installation

Learn more