Create Row with MySQL API

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

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Create Row with the MySQL API
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

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

  1. Configure the Create Row action
    1. Connect your MySQL account
    2. Select a Table
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  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.

Create Row on MySQL
Description:Adds a new row. [See the docs here](https://dev.mysql.com/doc/refman/8.0/en/insert.html)


import mysql from "../../mysql.app.mjs";
import utils from "../common/utils.mjs";

export default {
  key: "mysql-create-row",
  name: "Create Row",
  description: "Adds a new row. [See the docs here](https://dev.mysql.com/doc/refman/8.0/en/insert.html)",
  type: "action",
  version: "0.0.2",
  props: {
    table: {
      description: "The table to add a row to",
      propDefinition: [
      reloadProps: true,
  async additionalProps() {
    return await this.getColumnProps(this.table);
  methods: {
  async run({ $ }) {
    const { table } = this;

    const {
      columns, values,
    } = await this.getColumnAndValueArrays(table);

    const result = await this.mysql.insertRow({

    $.export("$summary", `Successfully added ${result.affectedRows} row(s) to table ${table}`);

    return result;


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.
TabletablestringSelect a value from the drop down menu.


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