Connecting to MySQL

When you begin a MySQL import for the first time, you will need to go through a few steps to connect MySQL as a data source for Coefficient. You will need your MySQL Hostname, Database Name, Username, and Password. (The default MySQL port is "3306").

  1. Open the Coefficient Sidebar and click the Menu.

    Screenshot 2023-01-30 at 10.06.14 PM.png

  2. Select “Connected Sources”.

    Screenshot 2023-01-30 at 10.29.51 PM.png

  3. Select “Add Connection*”* at the bottom and then “Connect” to MySQL.

    Screen Shot 2022-10-03 at 9.40.58 PM.png

  4. Enter the required fields (Host, Database name, Username, Password, and Port)

    Screen Shot 2022-10-03 at 9.42.48 PM.png

  5. If your database is behind a firewall, make sure that you whitelist our IP Addresses.

    ALL 3 IP Addresses should be whitelisted

    Screen Shot 2022-10-03 at 9.47.02 PM.png

  6. Once you “Connect”, you will be presented with the option to share this connection with other members of your team that also use Coefficient.

Screen Shot 2022-10-03 at 9.55.04 PM.png

Import from MySQL

There are 2 different ways to import data using Coefficient from MySQL, Importing from Tables and Importing from a Custom SQL Query. Importing from a Table allows you to create imports without having to write SQL. Using a Custom SQL Query gives you additional flexibility in the data that you are importing into Coefficient.

Import from Tables

  1. In the sidebar select "Import Data".

Screenshot 2023-01-30 at 11.04.11 PM.png

  1. Select MySQL from the list.

Screen Shot 2022-10-04 at 7.35.44 PM.png

  1. Select "Import from Tables".

Screen Shot 2022-10-04 at 7.38.35 PM.png

  1. The Data Preview window opens showing all the table schemas from your MySQL database. Select the table for your import. (ie: ”actor”)

Screen Shot 2022-10-04 at 7.49.06 PM.png

  1. Once the table is selected, the fields within that table will appear in a list on the left side of the Data Preview window. Select the fields you want to include in your import by checking/unchecking the corresponding boxes. As you check/uncheck fields they will be added as a new column in the main preview section.

    Screen Shot 2022-10-04 at 7.55.01 PM.png

  2. You can customize your import by then adding filters, sorting, limits or even grouping the data in a cloud pivot table.

    Screen Shot 2022-10-04 at 7.59.00 PM.png