Last active
May 29, 2025 22:42
-
-
Save aabumuslimov/b11d9faddc222dcbf1bf78a3d293f938 to your computer and use it in GitHub Desktop.
MySQL expected memory allocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ROUND(( | |
@@GLOBAL.key_buffer_size | |
+ @@GLOBAL.query_cache_size | |
+ @@GLOBAL.tmp_table_size | |
+ @@GLOBAL.innodb_buffer_pool_size | |
+ @@GLOBAL.innodb_log_buffer_size | |
+ @@GLOBAL.max_connections | |
* ( | |
@@GLOBAL.sort_buffer_size | |
+ @@GLOBAL.read_buffer_size | |
+ @@GLOBAL.read_rnd_buffer_size | |
+ @@GLOBAL.join_buffer_size | |
+ @@GLOBAL.thread_stack | |
+ @@GLOBAL.binlog_cache_size | |
)) / 1024 / 1024, 1) `Total MB`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment