Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Navicat for mysql client operation mysql is very slow problem

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

First check the mysql error log:

Cd / usr/local/mysql/var/ tail VM_79_224_centos.err

The name of the log may be different, depending on the actual situation

Open and see an error similar to the following:

110617 14:04:10 [Warning] IP address' 19.200.90.16' could not be resolved: Temporary failure in name resolution110617 14:07:48 [Warning] IP address' 19.200.57.44' could not be resolved: Temporary failure in name resolution

This error log indicates that mysql performs dns resolution on ip addresses. The solution is to modify the my.cnf configuration file to cancel dns resolution.

Do the following:

Vi / etc/my.cnf

Add a line to the my.cnf:

Skip-name-resolve

Save, exit, restart mysql service, ok

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report