潜力博客

人生的最大遗憾莫过于错误地坚持了不该坚持的,轻易地放弃了不该放弃的...

« ASP中有效防止Session超时的方法MSSQL Server数据库维护计划图解 »

linux服务器有关连接mysql慢的问题

     最近网站的mysql数据库转移到另台linux服务器,发现打开网站非常的慢,经过排查,终于查到了是mysql连接问题引起的。网上查看资料,终于解决了。
方法1:更改 my.cnf
[mysqld]
skip-name-resolve 
方法2:如果是由于防火墙引起的
windows 防火墙关闭或者级别设成低
linux关闭iptables ipchains,安全级别设成Disable或者最低的( system-config-securitylevel 命令)

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Search

Categories

Previous

Comments

Archives

Copyright © 2008 432902198309224214 All Rights Reserved.b2bb2c
Powered By Z-Blog Designed by Han'space