In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The thing begins with questions from friends:
Seeing this problem, I first thought of the possibility that the tool was not connected properly, but he quickly ruled it out.
Then I asked him if the slow query switch was turned on.
If it is not turned on, then execute: set global slow_query_log=on;, he also took care of this quickly.
I asked him how much the slow query time was set (I suspect he set it too long so he didn't log it) and he said 1 second.
I asked if I could confirm that there was a qualified slow query, and he said that it did exist after reading the log.
At this time, I began to feel the problem and quickly start Spotlight to connect to the MySQL in the virtual machine.
It is found that Slow Query Log really does not have the data. The fork installation is about to fail, but it must not easily admit defeat.
After crazy Baidu has changed the following two points:
1. Turn on General Log
two。 Add settings under [mysqld] in the my.cnf configuration file:
Then restart MySQL and reconnect to Spotlight to view Slow Query Log:
So far, it is declared that the fork has been installed successfully.
Article source: http://blog.163.com/lucia_gagaga/blog/static/264768019201681931238833/
Postscript: 1. Personally, I don't think it is necessary to turn on general_log, which affects the performance of MySQL.
two。 For online, it is troublesome to modify static parameters to restart the database, such as applying for suspension of business, so you should think of it in the early planning.
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.