New Table from MySQL API

Pipedream makes it easy to connect APIs for MySQL and 700+ other apps remarkably fast.

Trigger workflow on
New Table from the MySQL API
Next, do this
Connect to 700+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Table with MySQL API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Table trigger
    1. Connect your MySQL account
    2. Configure timer
  2. Add steps to connect to 700+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger


This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Table on MySQL
Description:Emit new event when a new table is added to a database. [See the docs here](https://dev.mysql.com/doc/refman/8.0/en/select.html)


import common from "../common.mjs";

export default {
  key: "mysql-new-table",
  name: "New Table",
  description: "Emit new event when a new table is added to a database. [See the docs here](https://dev.mysql.com/doc/refman/8.0/en/select.html)",
  type: "source",
  version: "0.0.2",
  dedupe: "unique",
  props: {
    db: "$.service.db",
  hooks: {
    async deploy() {
      const tables = await this.mysql.listTopTables();
      this._setLastResult(tables, "CREATE_TIME");
  methods: {
    async listResults() {
      const lastResult = this._getLastResult();
      const tables = lastResult ?
        await this.mysql.listBaseTables(lastResult) :
        await this.mysql.listTopTables();
      this._setLastResult(tables, "CREATE_TIME");
      TABLE_NAME: tableName, CREATE_TIME: createTime,
    }) {
      return {
        id: tableName,
        summary: tableName,
        ts: Date.parse(createTime),


This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
MySQLmysqlappThis component uses the MySQL app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.


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.

These values correspond with your MySQL server:

  • host: IP address or domain to access your MySQL server
  • port: Default is 3306
  • username: The account username to log in
  • password: The account password to log in
  • database: The name of the database to open after logging in. Please note, MySQL must be connectable from Pipedream's IP address range. Otherwise, you'll receive a Connection Refused error.

About MySQL

Open-source relational database