Any memory specified below is allocated once for each MySQL instance, regardless of the number of connections.
query_cache_size
query_cache_limit
1M
(default)query_cache_type
1
(enables cache by default)SQL_CACHE
in specific queries accessing tables with less UPDATE
or INSERT
volume.max_connections
innodb_buffer_pool_size
default_storage_engine
InnoDB
default_character_set
utf8
collation_server
utf8_general_ci
character_set_server
utf8
max_allowed_packet
sync_binlog
1
if the disk controller has a battery-backed cache.innodb_log_file_size
innodb_flush_log_at_trx_commit
innodb_flush_method
innodb_file_per_table
table_cache
key_buffer_size
Any memory specified below is allocated per-connection. The maximum number of concurrent connections is max_connections
. The MySQL server should not have to swap even if it reaches max_connections
and MySQL uses all globally available memory. If a particular session or connection would benefit from increases in any of the buffers marked with , these buffers can be increased on a session-by-session basis.
thread_stack
192K
net_buffer_length
(allocated twice per connection)
16K
sort_buffer_size
2M
read_buffer_size
200K
join_buffer_size
1M
bulk_insert_buffer_size
8M
INSERT INTO ... SELECT
, INSERT INTO ... VALUES (...), (...)
, and LOAD DATA INFILE
.read_rnd_buffer_size