码迷,mamicode.com
首页 > 数据库 > 详细

mysql5.7在线更改innodb_buffer_pool_size

时间:2019-10-25 13:44:34      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:mys   cte   row   bsp   ODB   nbsp   name   col   global   

 

 

show variables like innodb_buffer_pool_size;

set global innodb_buffer_pool_size=53687091200;
# 在线更改该值时,不会立即生效,大概需要30s左右的时间才会完全生效。 ########################################################
> show variables like innodb_buffer_pool_size; +-------------------------+-------------+ | Variable_name | Value | +-------------------------+-------------+ | innodb_buffer_pool_size | 85899345920 | +-------------------------+-------------+ 1 row in set (0.00 sec) Fri Oct 25 12:34:46 2019> set global innodb_buffer_pool_size=53687091200; Query OK, 0 rows affected (0.00 sec) Fri Oct 25 12:35:25 2019> show variables like innodb_buffer_pool_size; +-------------------------+-------------+ | Variable_name | Value | +-------------------------+-------------+ | innodb_buffer_pool_size | 85899345920 | +-------------------------+-------------+ 1 row in set (0.00 sec) Fri Oct 25 12:35:28 2019> show variables like innodb_buffer_pool_size; +-------------------------+-------------+ | Variable_name | Value | +-------------------------+-------------+ | innodb_buffer_pool_size | 85899345920 | +-------------------------+-------------+ 1 row in set (0.00 sec) Fri Oct 25 12:35:38 2019 > show variables like innodb_buffer_pool_size; +-------------------------+-------------+ | Variable_name | Value | +-------------------------+-------------+ | innodb_buffer_pool_size | 85899345920 | +-------------------------+-------------+ 1 row in set (0.00 sec) Fri Oct 25 12:35:55 2019> show variables like innodb_buffer_pool_size; +-------------------------+-------------+ | Variable_name | Value | +-------------------------+-------------+ | innodb_buffer_pool_size | 52848230400 | +-------------------------+-------------+ 1 row in set (0.00 sec) Fri Oct 25 12:36:16 2019 >

 

mysql5.7在线更改innodb_buffer_pool_size

标签:mys   cte   row   bsp   ODB   nbsp   name   col   global   

原文地址:https://www.cnblogs.com/igoodful/p/11737397.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!