Loading Data from MySQL
This section describes how to connect MySQL with Exasol and then load data. To view details about data type mappings or to migrate data, see the MySQL to Exasol migration script in our GitHub repository.
Download the JDBC driver for MySQL from the MySQL Connectors page. In the Select Operating System dropdown menu, select Platform Independent.
Add JDBC Driver
To add a JDBC driver, you must create a configuration file called
settings.cfg. Use the below settings to create the file, replacing the JAR entry with the name of the jar file you downloaded:
Follow the procedure described in Add JDBC Drivers to upload the
settings.cfg configuration file and the JDBC driver jar file(s).
Run the following statement to create a connection.
The connection string and authentication details in the example must be replaced with your own values. The MySQL user must have enough privileges to create a connection.
CREATE OR REPLACE CONNECTION JDBC_MYSQL
IDENTIFIED BY 'my_password';
Run the following statement to test the connection.
You can use the IMPORT statement to load data using the connection you created above. IMPORT supports loading data from a table or a SQL statement.