Getting Started

There are three steps to get started using MySQL with MySQL:

  1. Create a database user

  2. Connect MySQL to Secoda

  3. Whitelist Secoda IP Address

Create a Database User

The username and password you’ve already created for your cluster is your admin password, which you should keep for your own usage. For Secoda, and any other 3rd-parties, it is best to create distinct users.

To create a new user, you’ll need to log into the MySQL database directly and run the following SQL commands:

-- Create a user named "secoda" that Secoda will use when connecting to your MySQL database. 
CREATE USER 'secoda' IDENTIFIED BY '<your_password>';


-- Complete this query for any databases you would like Secoda to extract from
GRANT SELECT ON DATABASE <yourdbname> TO secoda;

When connecting to MySQL in Secoda, use the username/password you’ve created here instead of your admin account.

Connect MySQL to Secoda

After creating a MySQL user, the next step is to connect Secoda:

  1. In the Secoda App, select ‘Add Integration’ on the Integrations tab

  2. Search for and select ‘MySQL’

  3. Enter your MySQL credentials created in step 1

  4. Click 'Connect'

Security

VPCs keep servers inaccessible to traffic from the internet. With VPC, you’re able to designate specific web servers access to your servers. In this case, you will be whitelisting the Secoda IPs to read from your data warehouse.

Allow Secoda to read into your MySQL database using 35.175.75.15/32 and 34.230.160.245/32

Did this answer your question?