首页 > 数据库技术 > 详细

【原创】大叔经验分享(79)mysql内存设置

时间:2019-08-01 00:54:25      阅读:84      评论:0      收藏:0      [点我收藏+]

mysql内存设置,首先要知道当前的设置

MySQL [(none)]> show variables like %buffer%;
+-------------------------------------+----------------+
| Variable_name                       | Value          |
+-------------------------------------+----------------+
| bulk_insert_buffer_size             | 8388608        |
| innodb_buffer_pool_chunk_size       | 33554432       |
| innodb_buffer_pool_dump_at_shutdown | ON             |
| innodb_buffer_pool_dump_now         | OFF            |
| innodb_buffer_pool_dump_pct         | 25             |
| innodb_buffer_pool_filename         | ib_buffer_pool |
| innodb_buffer_pool_instances        | 1              |
| innodb_buffer_pool_load_abort       | OFF            |
| innodb_buffer_pool_load_at_startup  | ON             |
| innodb_buffer_pool_load_now         | OFF            |
| innodb_buffer_pool_size             | 67108864       |
| innodb_change_buffer_max_size       | 25             |
| innodb_change_buffering             | all            |
| innodb_log_buffer_size              | 16777216       |
| innodb_sort_buffer_size             | 1048576        |
| join_buffer_size                    | 262144         |
| key_buffer_size                     | 8388608        |
| myisam_sort_buffer_size             | 8388608        |
| net_buffer_length                   | 16384          |
| preload_buffer_size                 | 32768          |
| read_buffer_size                    | 131072         |                                                                                                                                                                 
| read_rnd_buffer_size                | 262144         |                                                                                                                                                                 
| sort_buffer_size                    | 262144         |                                                                                                                                                                 
| sql_buffer_result                   | OFF            |                                                                                                                                                                 
+-------------------------------------+----------------+

想改哪个直接配置到my.cnf中即可

 

【原创】大叔经验分享(79)mysql内存设置

原文:https://www.cnblogs.com/barneywill/p/11279597.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!