In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article refers to the official manual.
Please indicate the source of the original reprint
Version: MYSQL 5.7
When the database is restarted, the data in buffer needs to be rewarded. The so-called warm-up is to wait for commonly used data to be loaded from disk to memory by calling SQL statements.
This process is called physical read in ORACLE. For larger platforms, this warm-up process often requires a high cost. Typically, a select is run for the first time.
The statement is slow and then executed again very quickly.
In this case, by default, innodb saves and loads state data at both shutdown and startup, as determined by the parameters
Innodb_buffer_pool_load_at_startup
And
Innodb_buffer_pool_dump_at_shutdown
Control. Default is on.
Its preservation ratio is controlled by parameters.
Innodb_buffer_pool_dump_pct
The default is 25%
And its file is made up of parameters.
The innodb_buffer_pool_filename control defaults to:
Mysql > show variables like'% innodb_buffer_pool_filename%'
+-+ +
| | Variable_name | Value |
+-+ +
| | innodb_buffer_pool_filename | ib_buffer_pool |
+-+ +
This file is located in the innodb data file directory, in which the space_no,page_no form is saved as follows:
545213
545212
545211
545210
545209
545208
545207
.
The following statements can be used online:
SET GLOBAL innodb_buffer_pool_dump_now=ON
SET GLOBAL innodb_buffer_pool_load_now=ON
For dump and load, and can be accessed through the
SHOW STATUS LIKE 'Innodb_buffer_pool_dump_status'
And
SHOW STATUS LIKE 'Innodb_buffer_pool_load_status'
Check dump and load
Author Wechat:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.