现象:
今发现网站访问数据库变慢,经查是连接数据库耗时比较长。
解决办法:
在mysql的配置文件my.cnf中,在[mysqld]下面加上这个配置就可以了.
附录:[mysqld]部分要加入一个参数skip-name-resolve :主机名不被解析。加入后在授权表的 Host 的列值必须是IP数字或 localhost 。
How MySQL uses DNS
Wh...
分类:
数据库 时间:
2014-05-12 15:24:33
阅读次数:
399
How Many Sets IITime Limit:2 Seconds Memory
Limit:65536 KBGiven a setS= {1, 2, ...,n}, numbermandp, your job is to count how
many setTsatisfies the fo...
分类:
其他好文 时间:
2014-05-12 13:05:52
阅读次数:
238
iwangzheng.com16:57 [root@a02.cmsapi]$ mysql
-u-p -h10.103.xx.xxWelcome to the MySQL monitor. Commands end with ; or \g.Your
MySQL connection id is 57...
分类:
数据库 时间:
2014-05-10 20:57:56
阅读次数:
441
原文地址:Authentication options|Basic authorizationIf
you want to use simple binds with user DN and password within a Java component,
in order to authenti...
分类:
其他好文 时间:
2014-05-10 20:27:03
阅读次数:
485
yum install policycoreutils-python
分类:
其他好文 时间:
2014-05-10 07:59:06
阅读次数:
163
------------------------------------转---------------------------------In
this tutorial we are going to see how to deploy JAX-WS Web Services on Tomcat...
分类:
其他好文 时间:
2014-05-10 03:05:08
阅读次数:
564
绿色版本,解压缩D:\Software\mysql-advanced-5.6.18-winx64my-default.ini
改名my.inimy.ini内容如下# For advice on how to change settings please see#
http://dev.mysql.c...
分类:
数据库 时间:
2014-05-10 02:30:15
阅读次数:
495
IrisSkin2
使用方法本篇文章主要讲解如何用IrisSkin2.dll来动态的对WinForm界面进行更换皮肤操作,在操作之前,应该确保有IrisSkin2.dll和一些稍微漂亮些的皮肤文件(以.ssk结尾),把它们放置在你自认为很合适的位置,为了演示用我把IrisSkin2.dll和皮肤文件...
程序员阿士顿的故事2011-03-19 21:37:51前几天有人在 Stack Exchange
上提了一个问题 How can a new programmer impress the software engineer
(boss)?(作为新手程序员如何给软件工程师出身的老板留下好印象?),J...
分类:
其他好文 时间:
2014-05-10 00:00:32
阅读次数:
583
How to start/stop DB instance of Oracle under Linux...
分类:
数据库 时间:
2014-05-09 15:10:41
阅读次数:
380