digitalocean.DatabaseMysqlConfig
Explore with Pulumi AI
Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed MySQL database cluster.
Note MySQL configurations are only removed from state when destroyed. The remote configuration is not unset.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const exampleDatabaseCluster = new digitalocean.DatabaseCluster("example", {
name: "example-mysql-cluster",
engine: "mysql",
version: "8",
size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
region: digitalocean.Region.NYC1,
nodeCount: 1,
});
const example = new digitalocean.DatabaseMysqlConfig("example", {
clusterId: exampleDatabaseCluster.id,
connectTimeout: 10,
defaultTimeZone: "UTC",
});
import pulumi
import pulumi_digitalocean as digitalocean
example_database_cluster = digitalocean.DatabaseCluster("example",
name="example-mysql-cluster",
engine="mysql",
version="8",
size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
region=digitalocean.Region.NYC1,
node_count=1)
example = digitalocean.DatabaseMysqlConfig("example",
cluster_id=example_database_cluster.id,
connect_timeout=10,
default_time_zone="UTC")
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleDatabaseCluster, err := digitalocean.NewDatabaseCluster(ctx, "example", &digitalocean.DatabaseClusterArgs{
Name: pulumi.String("example-mysql-cluster"),
Engine: pulumi.String("mysql"),
Version: pulumi.String("8"),
Size: pulumi.String(digitalocean.DatabaseSlug_DB_1VPCU1GB),
Region: pulumi.String(digitalocean.RegionNYC1),
NodeCount: pulumi.Int(1),
})
if err != nil {
return err
}
_, err = digitalocean.NewDatabaseMysqlConfig(ctx, "example", &digitalocean.DatabaseMysqlConfigArgs{
ClusterId: exampleDatabaseCluster.ID(),
ConnectTimeout: pulumi.Int(10),
DefaultTimeZone: pulumi.String("UTC"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var exampleDatabaseCluster = new DigitalOcean.DatabaseCluster("example", new()
{
Name = "example-mysql-cluster",
Engine = "mysql",
Version = "8",
Size = DigitalOcean.DatabaseSlug.DB_1VPCU1GB,
Region = DigitalOcean.Region.NYC1,
NodeCount = 1,
});
var example = new DigitalOcean.DatabaseMysqlConfig("example", new()
{
ClusterId = exampleDatabaseCluster.Id,
ConnectTimeout = 10,
DefaultTimeZone = "UTC",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DatabaseCluster;
import com.pulumi.digitalocean.DatabaseClusterArgs;
import com.pulumi.digitalocean.DatabaseMysqlConfig;
import com.pulumi.digitalocean.DatabaseMysqlConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder()
.name("example-mysql-cluster")
.engine("mysql")
.version("8")
.size("db-s-1vcpu-1gb")
.region("nyc1")
.nodeCount(1)
.build());
var example = new DatabaseMysqlConfig("example", DatabaseMysqlConfigArgs.builder()
.clusterId(exampleDatabaseCluster.id())
.connectTimeout(10)
.defaultTimeZone("UTC")
.build());
}
}
resources:
example:
type: digitalocean:DatabaseMysqlConfig
properties:
clusterId: ${exampleDatabaseCluster.id}
connectTimeout: 10
defaultTimeZone: UTC
exampleDatabaseCluster:
type: digitalocean:DatabaseCluster
name: example
properties:
name: example-mysql-cluster
engine: mysql
version: '8'
size: db-s-1vcpu-1gb
region: nyc1
nodeCount: 1
Create DatabaseMysqlConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseMysqlConfig(name: string, args: DatabaseMysqlConfigArgs, opts?: CustomResourceOptions);
@overload
def DatabaseMysqlConfig(resource_name: str,
args: DatabaseMysqlConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatabaseMysqlConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
innodb_rollback_on_timeout: Optional[bool] = None,
wait_timeout: Optional[int] = None,
innodb_print_all_deadlocks: Optional[bool] = None,
connect_timeout: Optional[int] = None,
default_time_zone: Optional[str] = None,
group_concat_max_len: Optional[int] = None,
information_schema_stats_expiry: Optional[int] = None,
innodb_ft_min_token_size: Optional[int] = None,
innodb_ft_server_stopword_table: Optional[str] = None,
innodb_lock_wait_timeout: Optional[int] = None,
innodb_log_buffer_size: Optional[int] = None,
innodb_online_alter_log_max_size: Optional[int] = None,
backup_minute: Optional[int] = None,
binlog_retention_period: Optional[int] = None,
slow_query_log: Optional[bool] = None,
internal_tmp_mem_storage_engine: Optional[str] = None,
long_query_time: Optional[float] = None,
max_allowed_packet: Optional[int] = None,
max_heap_table_size: Optional[int] = None,
net_read_timeout: Optional[int] = None,
net_write_timeout: Optional[int] = None,
interactive_timeout: Optional[int] = None,
sort_buffer_size: Optional[int] = None,
sql_mode: Optional[str] = None,
sql_require_primary_key: Optional[bool] = None,
tmp_table_size: Optional[int] = None,
backup_hour: Optional[int] = None)
func NewDatabaseMysqlConfig(ctx *Context, name string, args DatabaseMysqlConfigArgs, opts ...ResourceOption) (*DatabaseMysqlConfig, error)
public DatabaseMysqlConfig(string name, DatabaseMysqlConfigArgs args, CustomResourceOptions? opts = null)
public DatabaseMysqlConfig(String name, DatabaseMysqlConfigArgs args)
public DatabaseMysqlConfig(String name, DatabaseMysqlConfigArgs args, CustomResourceOptions options)
type: digitalocean:DatabaseMysqlConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatabaseMysqlConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatabaseMysqlConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatabaseMysqlConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseMysqlConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseMysqlConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var databaseMysqlConfigResource = new DigitalOcean.DatabaseMysqlConfig("databaseMysqlConfigResource", new()
{
ClusterId = "string",
InnodbRollbackOnTimeout = false,
WaitTimeout = 0,
InnodbPrintAllDeadlocks = false,
ConnectTimeout = 0,
DefaultTimeZone = "string",
GroupConcatMaxLen = 0,
InformationSchemaStatsExpiry = 0,
InnodbFtMinTokenSize = 0,
InnodbFtServerStopwordTable = "string",
InnodbLockWaitTimeout = 0,
InnodbLogBufferSize = 0,
InnodbOnlineAlterLogMaxSize = 0,
BackupMinute = 0,
BinlogRetentionPeriod = 0,
SlowQueryLog = false,
InternalTmpMemStorageEngine = "string",
LongQueryTime = 0,
MaxAllowedPacket = 0,
MaxHeapTableSize = 0,
NetReadTimeout = 0,
NetWriteTimeout = 0,
InteractiveTimeout = 0,
SortBufferSize = 0,
SqlMode = "string",
SqlRequirePrimaryKey = false,
TmpTableSize = 0,
BackupHour = 0,
});
example, err := digitalocean.NewDatabaseMysqlConfig(ctx, "databaseMysqlConfigResource", &digitalocean.DatabaseMysqlConfigArgs{
ClusterId: pulumi.String("string"),
InnodbRollbackOnTimeout: pulumi.Bool(false),
WaitTimeout: pulumi.Int(0),
InnodbPrintAllDeadlocks: pulumi.Bool(false),
ConnectTimeout: pulumi.Int(0),
DefaultTimeZone: pulumi.String("string"),
GroupConcatMaxLen: pulumi.Int(0),
InformationSchemaStatsExpiry: pulumi.Int(0),
InnodbFtMinTokenSize: pulumi.Int(0),
InnodbFtServerStopwordTable: pulumi.String("string"),
InnodbLockWaitTimeout: pulumi.Int(0),
InnodbLogBufferSize: pulumi.Int(0),
InnodbOnlineAlterLogMaxSize: pulumi.Int(0),
BackupMinute: pulumi.Int(0),
BinlogRetentionPeriod: pulumi.Int(0),
SlowQueryLog: pulumi.Bool(false),
InternalTmpMemStorageEngine: pulumi.String("string"),
LongQueryTime: pulumi.Float64(0),
MaxAllowedPacket: pulumi.Int(0),
MaxHeapTableSize: pulumi.Int(0),
NetReadTimeout: pulumi.Int(0),
NetWriteTimeout: pulumi.Int(0),
InteractiveTimeout: pulumi.Int(0),
SortBufferSize: pulumi.Int(0),
SqlMode: pulumi.String("string"),
SqlRequirePrimaryKey: pulumi.Bool(false),
TmpTableSize: pulumi.Int(0),
BackupHour: pulumi.Int(0),
})
var databaseMysqlConfigResource = new DatabaseMysqlConfig("databaseMysqlConfigResource", DatabaseMysqlConfigArgs.builder()
.clusterId("string")
.innodbRollbackOnTimeout(false)
.waitTimeout(0)
.innodbPrintAllDeadlocks(false)
.connectTimeout(0)
.defaultTimeZone("string")
.groupConcatMaxLen(0)
.informationSchemaStatsExpiry(0)
.innodbFtMinTokenSize(0)
.innodbFtServerStopwordTable("string")
.innodbLockWaitTimeout(0)
.innodbLogBufferSize(0)
.innodbOnlineAlterLogMaxSize(0)
.backupMinute(0)
.binlogRetentionPeriod(0)
.slowQueryLog(false)
.internalTmpMemStorageEngine("string")
.longQueryTime(0)
.maxAllowedPacket(0)
.maxHeapTableSize(0)
.netReadTimeout(0)
.netWriteTimeout(0)
.interactiveTimeout(0)
.sortBufferSize(0)
.sqlMode("string")
.sqlRequirePrimaryKey(false)
.tmpTableSize(0)
.backupHour(0)
.build());
database_mysql_config_resource = digitalocean.DatabaseMysqlConfig("databaseMysqlConfigResource",
cluster_id="string",
innodb_rollback_on_timeout=False,
wait_timeout=0,
innodb_print_all_deadlocks=False,
connect_timeout=0,
default_time_zone="string",
group_concat_max_len=0,
information_schema_stats_expiry=0,
innodb_ft_min_token_size=0,
innodb_ft_server_stopword_table="string",
innodb_lock_wait_timeout=0,
innodb_log_buffer_size=0,
innodb_online_alter_log_max_size=0,
backup_minute=0,
binlog_retention_period=0,
slow_query_log=False,
internal_tmp_mem_storage_engine="string",
long_query_time=0,
max_allowed_packet=0,
max_heap_table_size=0,
net_read_timeout=0,
net_write_timeout=0,
interactive_timeout=0,
sort_buffer_size=0,
sql_mode="string",
sql_require_primary_key=False,
tmp_table_size=0,
backup_hour=0)
const databaseMysqlConfigResource = new digitalocean.DatabaseMysqlConfig("databaseMysqlConfigResource", {
clusterId: "string",
innodbRollbackOnTimeout: false,
waitTimeout: 0,
innodbPrintAllDeadlocks: false,
connectTimeout: 0,
defaultTimeZone: "string",
groupConcatMaxLen: 0,
informationSchemaStatsExpiry: 0,
innodbFtMinTokenSize: 0,
innodbFtServerStopwordTable: "string",
innodbLockWaitTimeout: 0,
innodbLogBufferSize: 0,
innodbOnlineAlterLogMaxSize: 0,
backupMinute: 0,
binlogRetentionPeriod: 0,
slowQueryLog: false,
internalTmpMemStorageEngine: "string",
longQueryTime: 0,
maxAllowedPacket: 0,
maxHeapTableSize: 0,
netReadTimeout: 0,
netWriteTimeout: 0,
interactiveTimeout: 0,
sortBufferSize: 0,
sqlMode: "string",
sqlRequirePrimaryKey: false,
tmpTableSize: 0,
backupHour: 0,
});
type: digitalocean:DatabaseMysqlConfig
properties:
backupHour: 0
backupMinute: 0
binlogRetentionPeriod: 0
clusterId: string
connectTimeout: 0
defaultTimeZone: string
groupConcatMaxLen: 0
informationSchemaStatsExpiry: 0
innodbFtMinTokenSize: 0
innodbFtServerStopwordTable: string
innodbLockWaitTimeout: 0
innodbLogBufferSize: 0
innodbOnlineAlterLogMaxSize: 0
innodbPrintAllDeadlocks: false
innodbRollbackOnTimeout: false
interactiveTimeout: 0
internalTmpMemStorageEngine: string
longQueryTime: 0
maxAllowedPacket: 0
maxHeapTableSize: 0
netReadTimeout: 0
netWriteTimeout: 0
slowQueryLog: false
sortBufferSize: 0
sqlMode: string
sqlRequirePrimaryKey: false
tmpTableSize: 0
waitTimeout: 0
DatabaseMysqlConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DatabaseMysqlConfig resource accepts the following input properties:
- Cluster
Id string - The ID of the target MySQL cluster.
- Backup
Hour int - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- Backup
Minute int - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- Binlog
Retention intPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- Connect
Timeout int - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- Default
Time stringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - Group
Concat intMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - Information
Schema intStats Expiry - The time, in seconds, before cached statistics expire.
- Innodb
Ft intMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- Innodb
Ft stringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- Innodb
Lock intWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- Innodb
Log intBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- Innodb
Online intAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- Innodb
Print boolAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- Innodb
Rollback boolOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- Interactive
Timeout int - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- Internal
Tmp stringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - Long
Query doubleTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - Max
Allowed intPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - Max
Heap intTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - Net
Read intTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- Net
Write intTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- Slow
Query boolLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- Sort
Buffer intSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - Sql
Mode string - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- Sql
Require boolPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- Tmp
Table intSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - Wait
Timeout int - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- Cluster
Id string - The ID of the target MySQL cluster.
- Backup
Hour int - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- Backup
Minute int - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- Binlog
Retention intPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- Connect
Timeout int - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- Default
Time stringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - Group
Concat intMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - Information
Schema intStats Expiry - The time, in seconds, before cached statistics expire.
- Innodb
Ft intMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- Innodb
Ft stringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- Innodb
Lock intWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- Innodb
Log intBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- Innodb
Online intAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- Innodb
Print boolAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- Innodb
Rollback boolOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- Interactive
Timeout int - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- Internal
Tmp stringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - Long
Query float64Time - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - Max
Allowed intPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - Max
Heap intTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - Net
Read intTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- Net
Write intTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- Slow
Query boolLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- Sort
Buffer intSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - Sql
Mode string - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- Sql
Require boolPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- Tmp
Table intSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - Wait
Timeout int - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- cluster
Id String - The ID of the target MySQL cluster.
- backup
Hour Integer - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup
Minute Integer - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog
Retention IntegerPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- connect
Timeout Integer - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default
Time StringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group
Concat IntegerMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information
Schema IntegerStats Expiry - The time, in seconds, before cached statistics expire.
- innodb
Ft IntegerMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb
Ft StringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb
Lock IntegerWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb
Log IntegerBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb
Online IntegerAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb
Print BooleanAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb
Rollback BooleanOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive
Timeout Integer - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal
Tmp StringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long
Query DoubleTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max
Allowed IntegerPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max
Heap IntegerTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net
Read IntegerTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net
Write IntegerTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow
Query BooleanLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort
Buffer IntegerSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql
Mode String - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql
Require BooleanPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp
Table IntegerSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait
Timeout Integer - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- cluster
Id string - The ID of the target MySQL cluster.
- backup
Hour number - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup
Minute number - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog
Retention numberPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- connect
Timeout number - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default
Time stringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group
Concat numberMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information
Schema numberStats Expiry - The time, in seconds, before cached statistics expire.
- innodb
Ft numberMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb
Ft stringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb
Lock numberWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb
Log numberBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb
Online numberAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb
Print booleanAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb
Rollback booleanOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive
Timeout number - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal
Tmp stringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long
Query numberTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max
Allowed numberPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max
Heap numberTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net
Read numberTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net
Write numberTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow
Query booleanLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort
Buffer numberSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql
Mode string - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql
Require booleanPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp
Table numberSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait
Timeout number - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- cluster_
id str - The ID of the target MySQL cluster.
- backup_
hour int - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup_
minute int - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog_
retention_ intperiod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- connect_
timeout int - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default_
time_ strzone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group_
concat_ intmax_ len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information_
schema_ intstats_ expiry - The time, in seconds, before cached statistics expire.
- innodb_
ft_ intmin_ token_ size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb_
ft_ strserver_ stopword_ table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb_
lock_ intwait_ timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb_
log_ intbuffer_ size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb_
online_ intalter_ log_ max_ size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb_
print_ boolall_ deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb_
rollback_ boolon_ timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive_
timeout int - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal_
tmp_ strmem_ storage_ engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long_
query_ floattime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max_
allowed_ intpacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max_
heap_ inttable_ size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net_
read_ inttimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net_
write_ inttimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow_
query_ boollog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort_
buffer_ intsize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql_
mode str - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql_
require_ boolprimary_ key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp_
table_ intsize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait_
timeout int - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- cluster
Id String - The ID of the target MySQL cluster.
- backup
Hour Number - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup
Minute Number - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog
Retention NumberPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- connect
Timeout Number - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default
Time StringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group
Concat NumberMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information
Schema NumberStats Expiry - The time, in seconds, before cached statistics expire.
- innodb
Ft NumberMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb
Ft StringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb
Lock NumberWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb
Log NumberBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb
Online NumberAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb
Print BooleanAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb
Rollback BooleanOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive
Timeout Number - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal
Tmp StringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long
Query NumberTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max
Allowed NumberPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max
Heap NumberTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net
Read NumberTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net
Write NumberTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow
Query BooleanLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort
Buffer NumberSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql
Mode String - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql
Require BooleanPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp
Table NumberSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait
Timeout Number - The number of seconds the server waits for activity on a noninteractive connection before closing it.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseMysqlConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DatabaseMysqlConfig Resource
Get an existing DatabaseMysqlConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatabaseMysqlConfigState, opts?: CustomResourceOptions): DatabaseMysqlConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_hour: Optional[int] = None,
backup_minute: Optional[int] = None,
binlog_retention_period: Optional[int] = None,
cluster_id: Optional[str] = None,
connect_timeout: Optional[int] = None,
default_time_zone: Optional[str] = None,
group_concat_max_len: Optional[int] = None,
information_schema_stats_expiry: Optional[int] = None,
innodb_ft_min_token_size: Optional[int] = None,
innodb_ft_server_stopword_table: Optional[str] = None,
innodb_lock_wait_timeout: Optional[int] = None,
innodb_log_buffer_size: Optional[int] = None,
innodb_online_alter_log_max_size: Optional[int] = None,
innodb_print_all_deadlocks: Optional[bool] = None,
innodb_rollback_on_timeout: Optional[bool] = None,
interactive_timeout: Optional[int] = None,
internal_tmp_mem_storage_engine: Optional[str] = None,
long_query_time: Optional[float] = None,
max_allowed_packet: Optional[int] = None,
max_heap_table_size: Optional[int] = None,
net_read_timeout: Optional[int] = None,
net_write_timeout: Optional[int] = None,
slow_query_log: Optional[bool] = None,
sort_buffer_size: Optional[int] = None,
sql_mode: Optional[str] = None,
sql_require_primary_key: Optional[bool] = None,
tmp_table_size: Optional[int] = None,
wait_timeout: Optional[int] = None) -> DatabaseMysqlConfig
func GetDatabaseMysqlConfig(ctx *Context, name string, id IDInput, state *DatabaseMysqlConfigState, opts ...ResourceOption) (*DatabaseMysqlConfig, error)
public static DatabaseMysqlConfig Get(string name, Input<string> id, DatabaseMysqlConfigState? state, CustomResourceOptions? opts = null)
public static DatabaseMysqlConfig get(String name, Output<String> id, DatabaseMysqlConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Hour int - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- Backup
Minute int - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- Binlog
Retention intPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- Cluster
Id string - The ID of the target MySQL cluster.
- Connect
Timeout int - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- Default
Time stringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - Group
Concat intMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - Information
Schema intStats Expiry - The time, in seconds, before cached statistics expire.
- Innodb
Ft intMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- Innodb
Ft stringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- Innodb
Lock intWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- Innodb
Log intBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- Innodb
Online intAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- Innodb
Print boolAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- Innodb
Rollback boolOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- Interactive
Timeout int - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- Internal
Tmp stringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - Long
Query doubleTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - Max
Allowed intPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - Max
Heap intTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - Net
Read intTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- Net
Write intTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- Slow
Query boolLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- Sort
Buffer intSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - Sql
Mode string - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- Sql
Require boolPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- Tmp
Table intSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - Wait
Timeout int - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- Backup
Hour int - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- Backup
Minute int - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- Binlog
Retention intPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- Cluster
Id string - The ID of the target MySQL cluster.
- Connect
Timeout int - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- Default
Time stringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - Group
Concat intMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - Information
Schema intStats Expiry - The time, in seconds, before cached statistics expire.
- Innodb
Ft intMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- Innodb
Ft stringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- Innodb
Lock intWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- Innodb
Log intBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- Innodb
Online intAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- Innodb
Print boolAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- Innodb
Rollback boolOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- Interactive
Timeout int - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- Internal
Tmp stringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - Long
Query float64Time - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - Max
Allowed intPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - Max
Heap intTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - Net
Read intTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- Net
Write intTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- Slow
Query boolLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- Sort
Buffer intSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - Sql
Mode string - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- Sql
Require boolPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- Tmp
Table intSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - Wait
Timeout int - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- backup
Hour Integer - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup
Minute Integer - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog
Retention IntegerPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- cluster
Id String - The ID of the target MySQL cluster.
- connect
Timeout Integer - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default
Time StringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group
Concat IntegerMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information
Schema IntegerStats Expiry - The time, in seconds, before cached statistics expire.
- innodb
Ft IntegerMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb
Ft StringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb
Lock IntegerWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb
Log IntegerBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb
Online IntegerAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb
Print BooleanAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb
Rollback BooleanOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive
Timeout Integer - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal
Tmp StringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long
Query DoubleTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max
Allowed IntegerPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max
Heap IntegerTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net
Read IntegerTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net
Write IntegerTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow
Query BooleanLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort
Buffer IntegerSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql
Mode String - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql
Require BooleanPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp
Table IntegerSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait
Timeout Integer - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- backup
Hour number - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup
Minute number - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog
Retention numberPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- cluster
Id string - The ID of the target MySQL cluster.
- connect
Timeout number - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default
Time stringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group
Concat numberMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information
Schema numberStats Expiry - The time, in seconds, before cached statistics expire.
- innodb
Ft numberMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb
Ft stringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb
Lock numberWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb
Log numberBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb
Online numberAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb
Print booleanAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb
Rollback booleanOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive
Timeout number - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal
Tmp stringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long
Query numberTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max
Allowed numberPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max
Heap numberTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net
Read numberTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net
Write numberTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow
Query booleanLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort
Buffer numberSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql
Mode string - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql
Require booleanPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp
Table numberSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait
Timeout number - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- backup_
hour int - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup_
minute int - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog_
retention_ intperiod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- cluster_
id str - The ID of the target MySQL cluster.
- connect_
timeout int - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default_
time_ strzone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group_
concat_ intmax_ len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information_
schema_ intstats_ expiry - The time, in seconds, before cached statistics expire.
- innodb_
ft_ intmin_ token_ size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb_
ft_ strserver_ stopword_ table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb_
lock_ intwait_ timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb_
log_ intbuffer_ size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb_
online_ intalter_ log_ max_ size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb_
print_ boolall_ deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb_
rollback_ boolon_ timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive_
timeout int - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal_
tmp_ strmem_ storage_ engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long_
query_ floattime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max_
allowed_ intpacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max_
heap_ inttable_ size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net_
read_ inttimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net_
write_ inttimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow_
query_ boollog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort_
buffer_ intsize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql_
mode str - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql_
require_ boolprimary_ key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp_
table_ intsize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait_
timeout int - The number of seconds the server waits for activity on a noninteractive connection before closing it.
- backup
Hour Number - The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
- backup
Minute Number - The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
- binlog
Retention NumberPeriod - The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
- cluster
Id String - The ID of the target MySQL cluster.
- connect
Timeout Number - The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
- default
Time StringZone - Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or
SYSTEM
to use the MySQL server default. - group
Concat NumberMax Len - The maximum permitted result length, in bytes, for the
GROUP_CONCAT()
function. - information
Schema NumberStats Expiry - The time, in seconds, before cached statistics expire.
- innodb
Ft NumberMin Token Size - The minimum length of words that an InnoDB FULLTEXT index stores.
- innodb
Ft StringServer Stopword Table - The InnoDB FULLTEXT index stopword list for all InnoDB tables.
- innodb
Lock NumberWait Timeout - The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
- innodb
Log NumberBuffer Size - The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
- innodb
Online NumberAlter Log Max Size - The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
- innodb
Print BooleanAll Deadlocks - When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
- innodb
Rollback BooleanOn Timeout - When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
- interactive
Timeout Number - The time, in seconds, the server waits for activity on an interactive. connection before closing it.
- internal
Tmp StringMem Storage Engine - The storage engine for in-memory internal temporary tables. Supported values are:
TempTable
,MEMORY
. - long
Query NumberTime - The time, in seconds, for a query to take to execute before being captured by
slow_query_logs
. Default is10
seconds. - max
Allowed NumberPacket - The size of the largest message, in bytes, that can be received by the server. Default is
67108864
(64M). - max
Heap NumberTable Size - The maximum size, in bytes, of internal in-memory tables. Also set
tmp_table_size
. Default is16777216
(16M) - net
Read NumberTimeout - The time, in seconds, to wait for more data from an existing connection. aborting the read.
- net
Write NumberTimeout - The number of seconds to wait for a block to be written to a connection before aborting the write.
- slow
Query BooleanLog - When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
- sort
Buffer NumberSize - The sort buffer size, in bytes, for
ORDER BY
optimization. Default is262144
. (256K). - sql
Mode String - Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
- sql
Require BooleanPrimary Key - Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
- tmp
Table NumberSize - The maximum size, in bytes, of internal in-memory tables. Also set
max_heap_table_size
. Default is16777216
(16M). - wait
Timeout Number - The number of seconds the server waits for activity on a noninteractive connection before closing it.
Import
A MySQL database cluster’s configuration can be imported using the id
the parent cluster, e.g.
$ pulumi import digitalocean:index/databaseMysqlConfig:DatabaseMysqlConfig example 4b62829a-9c42-465b-aaa3-84051048e712
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitalocean
Terraform Provider.