> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MySQL Advanced Writeback Connector

## Intro

Use Domo's MySQL Advanced Writeback connector to export your data from a Domo DataSet to the provided MySQL database in the Data Center using Advanced Security. To learn more about MySQL, visit their website at [https://www.mysql.com/](https://www.mysql.com/ "https://www.mysql.com/").

You export data to a MySQL database in the Data Center. This topic discusses the fields and menus that are specific to the MySQL Advanced Writeback connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in [Adding a DataSet Using a Data Connector](/s/article/360042926274).

<Note>
  **Note:** The owner of a writeback dataset must also be an owner or co-owner of the input dataset.
</Note>

## Prerequisites

To configure this connector, you will need the following:

* Your MySQL database or schema name.
* The hostname or IP address of your MySQL database server, such as
  [db.mycompany.com](http://db.mycompany.com).
* Your MySQL Database server port number.
* Your MySQL username and password.
* The port number for your MySQL server.
* (Optional) Your
  SSL client key
* (Optional) Your SSL client certificate
* (Optional) Your SSL CA Certificate Authority

<Warning>
  **Important**: You will need the following permissions on MySQL:

  * FILE
  * CREATE
  * DROP
  * INSERT
  * SELECT
  * UPDATE
</Warning>

## Configuring the Connection

This section enumerates the options in the **Credentials** and **Details** panes in the MySQL Advanced Writeback Connector page. The components of the other panes in this page, **Scheduling** and **Name & Describe Your DataSet**, are universal across most connector types and are discussed in greater length in [Adding a DataSet Using a Data Connector](/s/article/360042926274 "Adding a DataSet Using a Data Connector").

### Credentials Pane

This pane contains fields for entering credentials to connect to the table in your MySQL database where you want your data to be copied to. The following table describes what is needed for each field:

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:195;a">
  <thead>
    <tr>
      <th colspan="1" rowspan="1">
        <p>
          <span class="s1">
            Field
          </span>
        </p>
      </th>

      <th colspan="1" rowspan="1">
        <p>
          <span class="s1">
            Description
          </span>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td colspan="1" rowspan="1">
        <p> Database Name </p>
      </td>

      <td colspan="1" rowspan="1">
        <p> Enter the name of your MySQL database. </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> Host </p>
      </td>

      <td colspan="1" rowspan="1">
        <p> Enter your MySQL database hostname. </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> Username </p>
      </td>

      <td colspan="1" rowspan="1">
        <p> Enter your MySQL username. </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> Password </p>
      </td>

      <td colspan="1" rowspan="1">
        <p> Enter your MySQL password. </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> Port </p>
      </td>

      <td colspan="1" rowspan="1">
        <p> Enter your MySQL database port number. </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> SSL Key </p>
      </td>

      <td colspan="1" rowspan="1">
        <p>
          <span>
            Enter the client Key for SSL.
          </span>
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> SSL Certificate </p>
      </td>

      <td colspan="1" rowspan="1">
        <p>
          <span>
            Enter the Client Certificate for SSL.
          </span>
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> SSL CA Certificate </p>
      </td>

      <td colspan="1" rowspan="1">
        <p>
          <span>
            Enter the MySQL CA Certificate Authority for SSL.
          </span>
        </p>
      </td>
    </tr>
  </tbody>
</table>

For more information about obtaining these credentials, see "Prerequisites," above.

Once you have entered valid credentials, you can use the same account any time you go to set up a new Domo-MySQL connection. You can manage connector accounts in the **Accounts** tab in the Data Center. For more information about this tab, see [Managing User Accounts for Connectors](/s/article/360042926054 "Managing User Accounts for Connectors").

### Details Pane

This pane contains a number of fields for specifying your data and indicating where it's going.

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:195;a">
  <thead>
    <tr>
      <th colspan="1" rowspan="1">
        <p> Menu </p>
      </th>

      <th colspan="1" rowspan="1">
        <p> Description </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td colspan="1" rowspan="1">
        <p> DataSet ID </p>
      </td>

      <td colspan="1" rowspan="1">
        <p>
          {" "}

          Enter the DataSet ID (GUID) for the DataSet you want to copy to MySQL. You can find the ID by opening the details
          view for the DataSet in the Data Center and looking at the portion of the URL following

          <span class="mt-font-courier-new">
            {" "}

            datasources/{" "}
          </span>

          . For example, in the URL

          <span class="mt-font-courier-new">
            <span class="nowiki">
              <a href="https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview" rel="noopener" target="_blank">
                {" "}

                [https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview\{](https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview\{)" "}
              </a>
            </span>
          </span>

          , the DataSet ID is

          <span class="mt-font-courier-new">
            845305d8-da3d-4107-a9d6-13ef3f86d4a4.
          </span>
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> How Would You Like To Select Your Table? </p>
      </td>

      <td colspan="1" rowspan="1">
        <p>
          <span>
            {" "}

            Specify whether you would like to create a new table or select an existing table to export your DataSet data
            to.{" "}
          </span>
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> Table Name </p>
      </td>

      <td colspan="1" rowspan="1">
        <p> Select how you want to name the table where data will be copied. </p>

        <ul>
          <li>
            <p>
              <b>
                DataSet ID
              </b>

              . The table name will be the number you entered for

              <b>
                DataSet ID
              </b>

              .{" "}
            </p>
          </li>

          <li>
            <p>
              <b>
                Custom Name
              </b>

              . You will give the table a custom name in the

              <b>
                Custom Table Name
              </b>

              field.{" "}
            </p>
          </li>
        </ul>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> Custom Table Name </p>
      </td>

      <td colspan="1" rowspan="1">
        <p> Enter the name of the table in your MySQL database where you want your DataSet data to be copied. </p>
      </td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1">
        <p> Delete Existing Table and Create New Table For The Same Name </p>
      </td>

      <td colspan="1" rowspan="1">
        <p>
          <span>
            {" "}

            Normally, if you provide a table name with the same name as an existing table, the connector throws an error.
            If instead, you want us to drop the existing table and create a new table with this name, then check this checkbox.{" "}
          </span>
        </p>

        <p>
          <span>
            <b>
              WARNING
            </b>

            : This deletes the existing table, and the data cannot be recovered after it is
            deleted.{" "}
          </span>
        </p>
      </td>
    </tr>
  </tbody>
</table>

### Other Panes

For information about the remaining sections of the connector interface, including how to configure scheduling, retry, and update options, see [Adding a DataSet Using a Data Connector](/s/article/360042926274).
