ChinaUnix.net
相关文章推荐:

mysql局域网访问慢的问题

打开my.ini 在最下面加入如下代码: skip-name-resolve skip-grant-tables 例如: [mysqld] basedir=D:/APMServ5.2.0/mysql5.0 datadir=D:/APMServ5.2.0/mysql5.0/data port=3306 interactive_timeout=240 wait_timeout=240 skip-name-resolve skip-grant-tables 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52542/showart_431221.html

by whxy5 - MySQL文档中心 - 2007-11-27 09:31:46 阅读(1040) 回复(0)

相关讨论

转载1:今天公司的网络做了调整,造成原本连接很快的mysql服务器,连接速度奇。以前几十毫秒的连接现在完成一次要近5秒钟,在排除了网络问题后,只有从mysql下手。原来每次访问db,mysql就会试图去解析来访问的机器的domain name,如果这时解析不料,等一段时间会失败,数据才能被取过来。解决方法如下: 修改 my.cnf [mysqld] skip-name-resolve #Don’t resolve hostnames 重启,问题解决。 转载2:最近,web后台管理服务器...

by farm2008 - MySQL文档中心 - 2008-08-01 14:33:01 阅读(1296) 回复(0)

表的记录因为比较多,400多万条,因为复制了一个新表,用来备份这400多万条旧记录,把旧的表用来接受新的记录插入,删除了400万条旧记录。现在旧表才10多万条记录。 但是现在旧表查询很,取limit 10要40多秒,会是什么原因? 并且从文件来看,表的两个文件大小还是差不多,可一个记录是400多万条,一个是10多万条, du -sm * 1802 receiver_1.MYD 66 receiver_1.MYI 1 receiver.frm 1805 receiver.MYD 56 ...

by killingblade - MySQL - 2005-03-07 11:46:32 阅读(1092) 回复(1)

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

by sdccf - MySQL文档中心 - 2008-04-06 11:19:31 阅读(773) 回复(0)

查询的日志中有这样的记录:Query_time: 0 Lock_time: 0 Rows_sent: 0 Rows_examined: 2。其中Query_time: 0,在配置文件中定义记录查询使用时间是1秒,所以这儿应该记录是1秒以上的查询,但为什么会记录是0呢

by net_xiaobao - MySQL - 2008-03-25 09:28:07 阅读(1747) 回复(2)

这段时间,做了一个mysq双机备份的环境,但是从局域网其他服务器连接mysql比较,请教原因! mysql的工作环境是这样的: RedHat AS4.0 mysql-5.0.16-max 开始以为是双机备份引起的,但注释其配置选项重启mysql后,局域网其他服务器连接mysql还是比较,有个时候要等15-20秒种,才能里连接上去.但有个时候很快。 开始以为是网络不稳定引起的,但相互传输文件的速度有11M啊! 我就整不明白了,请高手赐教!

by jiang313hua - MySQL - 2006-09-21 13:44:54 阅读(6691) 回复(6)

作者: uprtystpk 出自: http://www.linuxdiyf.com 服务器放在局域网内进行测试时,数据库的访问速度还是很快。但当服务器放到外网后,数据库的访问速度就变得非常。 后来在网上发现解决方法,my.cnf里面添加 [mysqld] skip-name-resolve 这样速度就快了! skip-name-resolve 选项就能禁用DNS解析,连接速度会快很多。不过,这样的话就不能在mysql的授权表中使用主机名了而只能用ip格式。 还有权限的问题,当用户设置限制只能访问...

by sdccf - MySQL文档中心 - 2008-05-26 08:27:55 阅读(881) 回复(0)

现有一台mysql+NT4的服务器,客户端用一个条码扫描的软件可以正常访问数据库,但是我在远程访问此数据库却被拒绝,我是这样访问的:mysql -h 192.168.0.1 -uroot -p,root的密码是空的,在nt4上能正常进入。 我现在想自己用vb编一个条码扫描的程序,但是却无法正常访问操作数据库,我该如何做?为何前任编写的程序就能正常访问?请指点。。。

by brucechou - MySQL - 2005-03-22 15:08:13 阅读(1168) 回复(3)

#include "util.h" #include <mysql++.h> #include #include using namespace std; int main(int argc, char *argv[]) { // Connect to the sample database. mysqlpp::Connection con(false); if (!connect_to_db(argc, argv, con)) { return 1; } // Retrieve a subset of the sample stock table set up by resetdb mysqlpp::Query query = con.query(); query << "select item from stock"; mysqlpp::Res...

by jgcjsw - C/C++ - 2006-03-02 18:00:31 阅读(1145) 回复(2)

折腾了一天 还是没弄出来 请哪位高手有空帮小弟看一看 先谢谢了 <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %> <%@ page import="com.mysql.jdbc.Driver" %> 卧... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-8404623.html" target="_blank">gnahz </a> - <a href="http://bbs.chinaunix.net/forum-26-1.html" target="_blank">Java</a> - 2006-02-21 02:16:47 阅读(1294) 回复(3) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-63177-1-1.html" target="_blank"> ASP<font color="red">访问</font><font color="red">mysql</font>的<font color="red">问题</font> </a></h2> </div> <p> 偶想用一个win2k服务器的ASP<font color="red">访问</font>另一台Linux服务器里的<font color="red">mysql</font>数据库,请问偶该如何实现?asp下有<font color="red">mysql</font>的函数么? </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-1774956.html" target="_blank">shunz </a> - <a href="http://bbs.chinaunix.net/forum-17-1.html" target="_blank">MySQL</a> - 2003-05-22 00:59:16 阅读(1547) 回复(2) </div> </div> <div class="friendly_link"> <div class="friendly_con1"> <div class="f_link_tit">盛拓传媒:</div> <p><a href="http://www.it168.com">IT168</a> | <a href="http://www.pcpop.com">泡泡网</a> | <a href="http://www.autohome.com.cn">汽车之家</a> | <a href="http://www.che168.com">二手车之家</a> | <a href="http://www.qudao168.com">渠道168</a> | <a href="http://www.itpub.net/">ITPUB</a> | <a href="http://www.ixpub.net/">IXPUB</a> | <a href="http://www.chinaunix.net/">ChinaUnix</a> | <a href=" http://www.jimi168.com/">安卓之家</a> | <a href="http://www.app111.com/">苹果园</a> | <a href="http://www.gqt168.com/">家商城</a> | <a href="http://bbs.app111.com/">苹果论坛</a></p> <div class="clear"></div> </div> </div> <div id="footer"> <div class="dot1"><a href="http://www.bj.cyberpolice.cn/index.jsp" class="n1"></a><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202008062400006"></a><a href="http://ulic.baidu.com/client/clientDetailCerInfo.do?id=1602"></a></div> <p class="p"> <a href="http://www.it168.com/bottomfile/about.shtml" rel="nofollow">盛拓传媒简介</a> | <a href="http://www.it168.com/bottomfile/it168.shtml" rel="nofollow">关于IT168</a> | <a href="http://www.it168.com/bottomfile/hzhb.shtml" rel="nofollow">合作伙伴</a> | <a href="http://www.it168.com/bottomfile/ggfw.shtml" rel="nofollow">广告服务</a> | <a href="http://www.it168.com/bottomfile/sytk.shtml" rel="nofollow">使用条款</a> | <a href="http://www.it168.com/bottomfile/tgzn.shtml" rel="nofollow">投稿指南</a> | <a href="http://www.wintalent.cn:8031/wt5/sequelmedia/web/index" rel="nofollow">诚聘精英</a> | <a href="http://www.it168.com/bottomfile/lxwm.shtml" rel="nofollow">联系我们</a> | <a href="http://www.itpub.net/forum.php">ITPUB论坛</a> | <a href="http://www.it168.com/bottomfile/sitemap/sitemap.html" rel="nofollow">网站导航</a> | <a href="http://archive.it168.com/" rel="nofollow">往日回顾</a> </p> <address> 北京皓辰网域网络信息技术有限公司. 版权所有 <a href="http://www.it168.com/images/icp.jpg"><font color="#666666">京ICP证:060528号</font></a> 北京市公安局海淀分局网监中心备案编号:1101082001<br> <font color="#666666">广播电视节目制作经营许可证:编号(京)字第1149号</font> </address> <div style=" color:#666;margin-top:10px; text-align:right;">ITPUB推荐文章解答你所有技术难题</div> <div class="clear"> </div> </div> </div> <!-- 统计 START --> <script language="javascript" src="http://stat.it168.com/pv.js"></script> <script> function sendPV(){ var pvTrack = new PvTrack(); pvTrack.type = 35; // 频道类别ID pvTrack.channel = 461; // 频道ID pvTrack.pageType = 0; pvTrack.track(); } window.setTimeout("sendPV()", 1000); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20237423-2']); _gaq.push(['_setDomainName', '.chinaunix.net']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <div style='display:none'> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ee5e8cdc4d43389b3d1bfd76e83216b' type='text/javascript'%3E%3C/script%3E")); </script></div> <!-- END STAT PV --> <!-- <script type='text/javascript' src='http://168.it168.com/js/597.js'></script> --> <script>if(typeof(BLA)!='undefined'){BLA();}</script> </body> </html>