In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Database shrinkage:
Personal understanding, in the process of ordinary long-term operation of the database, the log files of the data will always increase by a certain proportion, and the data files will not necessarily reduce the disk space after deleting a large amount of data in the database, and repeated operations will lead to a waste of space, so shrinking the database will be reflected.
Suppose you set the database to shrink the database regularly, or do an assignment or something, so that you don't have to shrink manually, but you know, you will keep waiting for an event point to do it, or manually shrink from the point of view of system resources.
See the data file 2.07gb
Log 11.1gb
Well, let's first teach you the general method of contraction.
Move the page to the beginning of the file before shrinking (tick in front)
Then show you the size of the database.
It shrank a lot and became 5.93gb. The constant value after repeated operation means that it is already the minimum value.
But it is found that the database log file has not become smaller.
The first separate database
Second, delete log files
The third additional database
Click Yes, a database log file will be regenerated about what 500kb looks like
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.