FEATURES PRICING ABOUT DOCS LOGIN

mysql_grant

The mysql_grant resource creates and manages privileges given to a user on a MySQL server.

Example Usage

resource "mysql_user" "jdoe" {
    user = "jdoe"
    host = "example.com"
    password = "password"
}

resource "mysql_grant" "jdoe" {
    user = "${mysql_user.jdoe.user}"
    host = "${mysql_user.jdoe.host}"
    database = "app"
    privileges = ["SELECT", "UPDATE"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

No further attributes are exported.


See the source of this document at Terraform.io

REQUEST A DEMO