Skip to main content

Advanced parameters for Aiven for MySQL

See the configuration options available for Aiven for MySQL:

Parameter

Additional Cloud Regions for Backup Replication

  • default: 0.0.0.0/0

IP filter

Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'

service_log

boolean,null

Service logging

Store logs for the service so that they are available in the HTTP API and console.

static_ips

boolean

Static IP addresses

Use static public IP addresses

admin_username

string,null

Custom username for admin user. This must be set only when a new service is being created.

admin_password

string,null

Custom password for admin user. Defaults to random string. This must be set only when a new service is being created.

backup_hour

integer,null

  • max: 23

The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed.

backup_minute

integer,null

  • max: 59

The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed.

migration

object,null

Migrate data from existing server

Hostname or IP address of the server where to migrate data from

  • min: 1
  • max: 65535

Port number of the server where to migrate data from

Password for authentication with the server where to migrate data from

  • default: true

The server where to migrate data from is secured with SSL

User name for authentication with the server where to migrate data from

Database name for bootstrapping the initial connection

Comma-separated list of databases, which should be ignored during migration (supported by MySQL and PostgreSQL only at the moment)

Comma-separated list of database roles, which should be ignored during migration (supported by PostgreSQL only at the moment)

The migration method to be used (currently supported only by Redis, Dragonfly, MySQL and PostgreSQL service types)

Allow access to selected service ports from private networks

Allow clients to connect to mysql with a DNS name that always resolves to the service's private IP addresses. Only available in certain network locations

Allow clients to connect to mysqlx with a DNS name that always resolves to the service's private IP addresses. Only available in certain network locations

Allow clients to connect to prometheus with a DNS name that always resolves to the service's private IP addresses. Only available in certain network locations

Allow access to selected service components through Privatelink

Enable mysql

Enable mysqlx

Enable prometheus

Allow access to selected service ports from the public Internet

Allow clients to connect to mysql from the public internet for service nodes that are in a project VPC or another type of private network

Allow clients to connect to mysqlx from the public internet for service nodes that are in a project VPC or another type of private network

Allow clients to connect to prometheus from the public internet for service nodes that are in a project VPC or another type of private network

Name of another service to fork from. This has effect only when a new service is being created.

Name of another project to fork a service from. This has effect only when a new service is being created.

mysql_version

string,null

MySQL major version

Recovery target time when forking a service. This has effect only when a new service is being created.

  • min: 600
  • max: 86400

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.

mysql

object

mysql.conf configuration values

sql_mode

Global SQL mode. Set to empty to use MySQL server defaults. When creating a new service and not setting this field Aiven default SQL mode (strict, SQL standard compliant) will be assigned.

  • min: 2
  • max: 3600

connect_timeout

The number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake

default_time_zone

Default server time zone as an offset from UTC (from -12:00 to +12:00), a time zone name, or 'SYSTEM' to use the MySQL server default.

  • min: 4
  • max: 18446744073709552000

group_concat_max_len

The maximum permitted result length in bytes for the GROUP_CONCAT() function.

  • min: 900
  • max: 31536000

information_schema_stats_expiry

The time, in seconds, before cached statistics expire

  • max: 50

innodb_change_buffer_max_size

Maximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. Default is 25

  • max: 2

innodb_flush_neighbors

Specifies whether flushing a page from the InnoDB buffer pool also flushes other dirty pages in the same extent (default is 1): 0 - dirty pages in the same extent are not flushed, 1 - flush contiguous dirty pages in the same extent, 2 - flush dirty pages in the same extent

  • max: 16

innodb_ft_min_token_size

Minimum length of words that are stored in an InnoDB FULLTEXT index. Changing this parameter will lead to a restart of the MySQL service.

innodb_ft_server_stopword_table

This option is used to specify your own InnoDB FULLTEXT index stopword list for all InnoDB tables.

  • min: 1
  • max: 3600

innodb_lock_wait_timeout

The length of time in seconds an InnoDB transaction waits for a row lock before giving up. Default is 120.

  • min: 1048576
  • max: 4294967295

innodb_log_buffer_size

The size in bytes of the buffer that InnoDB uses to write to the log files on disk.

  • min: 65536
  • max: 1099511627776

innodb_online_alter_log_max_size

The upper limit in bytes on the size of the temporary log files used during online DDL operations for InnoDB tables.

innodb_print_all_deadlocks

When enabled, information about all deadlocks in InnoDB user transactions is recorded in the error log. Disabled by default.

  • min: 1
  • max: 64

innodb_read_io_threads

The number of I/O threads for read operations in InnoDB. Default is 4. Changing this parameter will lead to a restart of the MySQL service.

innodb_rollback_on_timeout

When enabled a transaction timeout causes InnoDB to abort and roll back the entire transaction. Changing this parameter will lead to a restart of the MySQL service.

  • max: 1000

innodb_thread_concurrency

Defines the maximum number of threads permitted inside of InnoDB. Default is 0 (infinite concurrency - no limit)

  • min: 1
  • max: 64

innodb_write_io_threads

The number of I/O threads for write operations in InnoDB. Default is 4. Changing this parameter will lead to a restart of the MySQL service.

  • min: 30
  • max: 604800

interactive_timeout

The number of seconds the server waits for activity on an interactive connection before closing it.

internal_tmp_mem_storage_engine

The storage engine for in-memory internal temporary tables.

  • min: 1024
  • max: 1048576

net_buffer_length

Start sizes of connection buffer and result buffer. Default is 16384 (16K). Changing this parameter will lead to a restart of the MySQL service.

  • min: 1
  • max: 3600

net_read_timeout

The number of seconds to wait for more data from a connection before aborting the read.

  • min: 1
  • max: 3600

net_write_timeout

The number of seconds to wait for a block to be written to a connection before aborting the write.

sql_require_primary_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.

  • min: 1
  • max: 2147483

wait_timeout

The number of seconds the server waits for activity on a noninteractive connection before closing it.

  • min: 102400
  • max: 1073741824

max_allowed_packet

Size of the largest message in bytes that can be received by the server. Default is 67108864 (64M)

  • min: 1048576
  • max: 1073741824

max_heap_table_size

Limits the size of internal in-memory tables. Also set tmp_table_size. Default is 16777216 (16M)

  • min: 32768
  • max: 1073741824

sort_buffer_size

Sort buffer size in bytes for ORDER BY optimization. Default is 262144 (256K)

  • min: 1048576
  • max: 1073741824

tmp_table_size

Limits the size of internal in-memory tables. Also set max_heap_table_size. Default is 16777216 (16M)

slow_query_log

Slow query log enables capturing of slow queries. Setting slow_query_log to false also truncates the mysql.slow_log table.

  • max: 3600

long_query_time

The slow_query_logs work as SQL statements that take more than long_query_time seconds to execute.

log_output

The slow log output destination when slow_query_log is ON. To enable MySQL AI Insights, choose INSIGHTS. To use MySQL AI Insights and the mysql.slow_log table at the same time, choose INSIGHTS,TABLE. To only use the mysql.slow_log table, choose TABLE. To silence slow logs, choose NONE.