VPS侦探论坛

 找回密码
 注册
查看: 4354|回复: 3

mysql数据库错误日志非常大

[复制链接]
发表于 2016-3-1 21:38:53 | 显示全部楼层 |阅读模式

mysql数据库错误日志非常大,6G多了,看了下里面全是这种信息,一直无限重复的在生成中,请问要怎么解决呢?2016-03-01 11:07:21 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:21 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:21 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:21 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:21 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:21 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
2016-03-01 11:07:22 8445 [Warning] IP address 'X.X.X.X' has been resolved to the host name '1.5.1.rdns.xxx.com', which resembles IPv4-address itself.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-3-2 11:02:01 | 显示全部楼层


这个只是warning级别的不影响
/etc/my.cnf 里[mysqld]段里加上个skip-name-resolve 应该就不会再有这个提示了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-3-2 15:23:12 | 显示全部楼层

回复 2# 的帖子


在/etc/my.cnf里具体要怎么写呢?这样直接加上吗?还是要有什么值?
[mysqld]
port        = 3306
socket      = /tmp/mysql.sock
datadir = /usr/local/mysql/var
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 1024
sort_buffer_size = 4M
net_buffer_length = 8K
read_buffer_size = 4M
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 64M
thread_cache_size = 128
query_cache_size = 128M
tmp_table_size = 128M
table_open_cache = 1024
skip-name-resolve
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-3-2 20:08:42 | 显示全部楼层

回复 3# 的帖子




可以
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 23:22 , Processed in 0.026649 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表