上网解析龟速问题
Tofloor
poster avatar
ApplePie
deepin
2012-02-13 07:17
Author
问题描述:1.能搜到无线网,能连接。2.连接无线路由上网时,打开网页龟速,甚至常常该页无法显示,误以为不能上网。

问题原因:这和域名解析有关系:不管连接的方式是经过hosts或是IP,mysql都会对DNS做反查,mysql尝试反查IP->DNS,由于反查解析过慢或出问题,无法应对快速多量的查询

解决方法:

终端输入: sudo gedit /etc/mysql/my.cnf

找到[mysqld]

在最后一行添加参数

[mysqld]

#
# * Basic Settings
#

#
# * IMPORTANT
#   If you make changes to these settings and your system uses apparmor, you may
#   also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#

user        = mysql
socket        = /var/run/mysqld/mysqld.sock
port        = 3306
basedir        = /usr
datadir        = /var/lib/mysql
tmpdir        = /tmp
skip-external-locking
[color=#FF0000:3szm86zi]skip-name-resolve                   《- 添加这句[/color:3szm86zi]

保存,重启
Reply Favorite View the author
All Replies
cxbii
deepin
2012-02-15 18:28
#1
现在你去bug管理回馈你的解决方案吧?你自己去吧,你来描述方法好些
Reply View the author
xifangczy
deepin
2012-02-16 00:47
#2
这和无线网上有什么关系? 这不是mysql服务的配置文件吗?
Reply View the author