mysql set global key buffer size
mysql set global key buffer size

The key buffer size indicates the size of the key cache that MySQL uses to store indexes in memory. First, we must inspect some statistics on the key buffer. Login to your The key buffer size is set to 16 mega bytes. Master my.cnf (MySql 5.6 - 12 cores / 32 GB RAM) key-buffer-size 32M When log-bin is set, log bin is automatically set to ON . slave mysql SET GLOBAL gtid purged c777888a-b6df-11e2-a604-080027635ef5 1-4 . To adjust any of these settings at runtime use the SET GLOBAL command mentioned above. Key Buffer Size ¶. One thing MySQL can do is buffer primary keys. mysqld set-variable max connections 500 log-slow-queries 2B) -- Reads / Writes 86 / 14 -- Total buffers 34.0M global 2.7M per thread Key buffer size / total MyISAM indexes 8.0M/3.1G OK Key buffer hit Join Buffer Size you can go up to 256kb, a lot of people like to push this up to 2MB Commandline --key-buffer-size Scope Global Dynamic Yes Data Type numeric Removed in MySQL 5.0.6, was used as a way to force long character keys in Description If set to more than 1 , the default, MyISAM table indexes each  You can get the default buffer sizes used by the mysqld server with this command Please note that --set-variable is deprecated since MySQL 4.0, just use --var option on its own. If there is a . Now, you can increase the query cache size (let say you want 50M) using mysql SET GLOBAL query cache size 52428800 Using unique option prefix key buffer instead of key buffer size is deprecated and will 2 rows in set (0.00 sec) mysql SET GLOBAL general The post presents the configuration of MySQL server (my.cnf) for the Ideally, you set the size of the buffer pool to as large a value as The key buffer is also known as the key cache. A server restart also sets the maximum size of existing MEMORY tables to the global max heap table size value. MySQL 5.1 Database Reference Guide Many server system variables are dynamic and can be set at runtime using SET GLOBAL bulk insert buffer size numeric GLOBAL The InnoDB buffer pool size is the amount of RAM MySQL allocates for InnoDB database uses. RAM before installing Zimbra, the InnoDB buffer pool size will be set way too small. Total buffers 3.6G global 2.6M per thread (110 max threads) OK Key buffer size / total MyISAM indexes 8.0M/101.0K