MySQL

Open-source relational database

Go to site

MySQL API Integrations

Build and run workflows using the MySQL API. Use 1000s of open source triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

MySQL is a powerful database management system used by some of the largest organizations in the world, including Facebook, Google, and Amazon. MySQL is an open-source relational database management system (RDBMS), as well as a popular choice for web applications used by millions of websites.

Some applications that can be built using the MySQL API include:

  • A web application that stores and retrieves data from a MySQL database
  • A desktop application that uses a MySQL database for data storage
  • A mobile application that interacts with a MySQL database
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = defineComponent({
  props: {
    mysql: {
      type: "app",
      app: "mysql",
    }
  },
  async run({steps, $}) {
    const mysql = require('mysql2/promise');
    
    const { host, port, username, password, database } = this.mysql.$auth
    
    const connection = await mysql.createConnection({
      host,
      port,
      user: username,
      password,
      database,
    });
    
    const [rows, fields] = await connection.execute('SELECT NOW()');
    console.log(rows)
  },
})
Delete Row with MySQL API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + MySQL
 
Try it
Send Message (Advanced) with Discord Webhook API on New Column from MySQL API
MySQL + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Column from MySQL API
MySQL + Google Sheets
 
Try it
Delete Row with MySQL API on New Message from Discord API
Discord + MySQL
 
Try it
Execute Query with MySQL API on New Message In Channels from Slack API
Slack + MySQL
 
Try it
New Column from the MySQL API

Emit new event when you add a new column to a table. See the docs here

 
Try it
New or Updated Row from the MySQL API

Emit new event when you add or modify a new row in a table. See the docs here

 
Try it
New Row from the MySQL API

Emit new event when you add a new row to a table. See the docs here

 
Try it
New Row (Custom Query) from the MySQL API

Emit new event when new rows are returned from a custom query. See the docs here

 
Try it
New Table from the MySQL API

Emit new event when a new table is added to a database. See the docs here

 
Try it
Create Row with the MySQL API

Adds a new row. See the docs here

 
Try it
Delete Row with the MySQL API

Delete an existing row. See the docs here

 
Try it
Execute Query with the MySQL API

Find row(s) via a custom query. See the docs here

 
Try it
Execute Stored Procedure with the MySQL API

Execute Stored Procedure. See the docs here

 
Try it
Find Row with the MySQL API

Finds a row in a table via a lookup column. See the docs here

 
Try it

Authentication

MySQL uses API keys for authentication. When you connect your MySQL account, Pipedream securely stores the keys so you can easily authenticate to MySQL APIs in both code and no-code steps.

Before you connect to your MySQL database from Pipedream, please make sure your database is either:

  1. Accessible from the public internet (You may need to add a firewall rule on 0.0.0.0/0 on port 3306), or

  2. Accessible from an SSH server that you route MySQL requests through

After that, enter the following values:

  • host: The hostname or IP address of your MySQL server
  • port: 3306, unless you run MySQL on a different port
  • username: The account username to log in
  • password: The account password to log in
  • database: The name of the MySQL database to run queries against