MySQL

Pulumi Official
Package maintained by Pulumi
v3.1.0 published on Thursday, Nov 11, 2021 by Pulumi

The MySQL provider for Pulumi can be used to provision any of the resources available for MySQL. The MySQL provider must be configured with credentials to deploy and update resources in MySQL.

Example

const mysql = require("@pulumi/mysql")

const myDb = new mysql.Database("my-database");
import * as mysql from "@pulumi/mysql";

const myDb = new mysql.Database("my-database");
import pulumi_mysql as mysql

my_db = mysql.Database("my-database")
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	mysql "github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		myDb, err := mysql.NewDatabase(ctx, "my-database", &mysql.DatabaseArgs{})
		if err != nil {
			return err
		}

		return nil
	})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Mysql;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            mydatabase = new Database("my-database", new DatabaseArgs{});
        });
}