Home > Database > Mysql Tutorial > 解决mysql连接过慢的方法_MySQL

解决mysql连接过慢的方法_MySQL

WBOY
Release: 2016-06-01 13:46:01
Original
1368 people have browsed it

bitsCN.com

3种解决方法(前2种解决方法的缺点是不能再使用主机名,而要使用IP地址):
1.在启动参数中添加--skip-name-resolve,关闭反向域名解析功能
2.在my.cnf的[mysqld]一节中增加skip-name-resolve
3.在/etc/hosts文件中添加对应的host记录

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template