Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Modify MySQL / MariaDB configuration on Cloud Server

This guide explains how to view and modify the configuration settings MySQL / MariaDB of a Cloud Server. These settings allow you to adjust the behavior, performance, and some features of the service, including resource limits.

 

Preamble

  • MySQL is installed on a Dedicated Cloud Server: resources are not shared with other customers.
  • Only one instance of MySQL or MariaDB is present per Cloud Server.
  • The number and size of databases depend solely on the available disk space and resources.
  • For very large volumes of non-relational data, MongoDB is recommended.

 

Configurable MySQL / MariaDB settings

The following list presents the main variables that you can customize in your MySQL / MariaDB instance:

NameDescriptionValue
bulk_insert_buffer_sizeBuffer size for bulk insert operations8M
default_charsetDefines the default character set for the databaseutf8mb4
declare_explicit_defaults_for_timestampAllows explicitly declaring default values for timestamp-type columns""
declare_innodb_autoextend_incrementIncrement used for the automatic extension of the InnoDB table space""
declare_key_bufferKey buffer size for tables MyISAM""
event_schedulerEnable or disable the event scheduler MariaDB (allows executing scheduled tasks on the server side)OFF
ft_max_word_lenMaximum word length for full-text searchUndefined
ft_min_word_lenMinimum word length for full-text search3
innodb_additional_mem_pool_sizeSize of the additional memory pool for InnoDB""
innodb_buffer_pool_sizeSize of the buffer memory pool InnoDB (data and index storage)""
innodb_flush_log_at_trx_commitFrequency of writing logs InnoDB to disk""
innodb_large_prefixEnable the large prefix for indexes InnoDB 
innodb_lock_wait_timeoutMaximum wait time for obtaining locks InnoDB""
innodb_log_buffer_sizeSize of the log buffer InnoDB""
innodb_log_file_sizeSize of the log files InnoDB""
innodb_ft_min_token_sizeMinimum token size for full-text searchUndefined
innodb_ft_max_token_sizeMaximum token size for full-text searchUndefined
join_buffer_sizeSize of the join buffer for queries1M
key_buffer_sizeKey buffer size for tables MyISAM4M
lc_time_namesDefines the language used for the format of month and day namesUndefined
local_infileEnables or disables local file reading0
log_bin_enabledEnables or disables binary logging of transactionstrue
max_allowed_packetMaximum size of allowed network packetsUndefined
max_connect_errorsMaximum number of connection errors before blocking10
max_connectionsMaximum number of simultaneous connectionsUndefined
max_heap_table_sizeMaximum size of in-memory tables8M
max_user_connectionsMaximum number of simultaneous connections per user38
myisam_max_sort_file_sizeMaximum size of the temporary file used for table sorting MyISAM2G
myisam_sort_buffer_sizeSize of the sort buffer for tables MyISAM16M
myisamrecoverAutomatic recovery options for tables MyISAMmyisam-recover-options
query_cache_enabledEnable or disable the query cache 
query_cache_limitSize limit of results stored in the query cache256K
query_cache_sizeTotal size of the query cache64M
query_cache_typeType of cache used for queries0
read_buffer_sizeSize of the sequential read buffer2M
read_rnd_buffer_sizeSize of the random read buffer2M
table_open_cacheNumber of tables the server can keep open simultaneously256
thread_cache_sizeSize of the thread cache1
thread_concurrencyNumber of concurrent threads (0 = unlimited)0
thread_stackStack size per thread256K
timeoutsTimeouts (wait_timeout and interactive_timeout)30
tmp_table_sizeMaximum size of in-memory temporary tables8M
tmpdirTemporary directory used for temporary files"/home/nfs-clients/.mysql_tmp"

 

Any undefined parameter remains at its default value.

 

Modify MySQL / MariaDB parameters

To modify the configuration of your instance:

  1. Click here to access the management of your product in the Infomaniak Manager (need help?).
  2. Select the name of the Cloud Server concerned.
  3. Click on MySQL / MariaDB in the sidebar menu.
  4. Edit the desired parameters and then validate your changes.

Has this FAQ been helpful?