一、描述
腾讯云 MySQL 数据库账户,产品介绍
二、示例
resource "tencentcloud_mysql_account" "account" { mysql_id = tencentcloud_mysql_instance.mysql.id name = "cloudapp_test" password = "Password@1234" host = "%" description = "cloudapp test account" max_user_connections = 10240}
三、参数说明
| 类型 | 名称 | 数据类型 | 说明 |
| 必填 | region | string | 地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置 |
| 必填 | mysql_id | string | 实例 ID,格式如:cdb-c1nl9rpv |
| 必填 | name | string | 账户名,可输入1-32个字符 |
| 必填 | password | string | 操作密码,密码规则:8-64位字符,至少包含字母、数字、字符(_+-,&=!@#$%^*().|)中的两种 |
| 可选 | availability_zone | string | 可用区(本资源不需要此字段,覆盖为可选) |
| 可选 | count | int | 资源数量,默认为 1 如果为 0 则不创建资源 |
| 可选 | activity_id | int | 计费活动 ID,保留字段 |
| 可选 | host | string | 账号的主机,默认为 % |
| 可选 | description | string | 数据库描述,最多支持200个字符 |
| 可选 | max_user_connections | int | 新账户最大可用连接数,默认值为10240,最大可设置值为10240 |
| 生成 | id | string | 资源实例 ID |
| 生成 | create_time | string | 资源创建时间 |