In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, the editor will bring you about what you need to do when you receive a new mysql database. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
When I receive a new mysql database, I need to figure out the following:
1. The version of the database, character set, storage engine used, whether master-slave replication, high availability, backup, check the recent slow query log and ERR log, the amount of data in the table, how many tables are there, how big the table is, etc.
2. Check what triggers and stored procedures are currently available in Mysql.
Mysql > show triggers;mysql > show events;mysql > show procedure status;mysql > SHOW FUNCTION STATUS
3. Check whether the database has partition tables
Select TABLE_NAME from information_schema.PARTITIONS where PARTITION_NAME is not null
4. Execute show processlist for a while to see how much concurrency Mysql can have and what kind of sql it is.
5. Run the following tools to see the read-write ratio of mysql, pay attention to disk read, full join full table scan, operating system environment, etc.
Pt-summarypt-mysql-summarypt-query-digestpt-show-grantspt-variable-advisorpt-query-digestmysqlreport
6. See what users there are in the database
Select host,User,Password from mysql.user
7. System mount parameters
Mount-o noatime,nobarrier / dev/sda1/ data
8. See if numa is closed
Numactl-hardware
9. Check whether the scheduling policy is deadline or noop.
[root@MySQL02 chenzx] # cat / sys/block/sda/queue/scheduler noop anticipatory [deadline] cfq
10. Kernel parameters
Vim / etc/sysctl.confvm.swappiness
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.