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

解决mysql连接过慢的方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:46:011345browse

bitsCN.com

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

bitsCN.com
Statement:
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