mySQL 錯誤日志分析


https://github.com/twitter/mysql/commit/1912d02a461797977219e2578080b790020ad845

 

https://github.com/twitter/mysql/blob/master/sql/hostname.cc

 錯誤:

130111  3:33:55 [Warning] IP address '74.86.110.133' has been resolved to the host name '74.86.110.133-static.reverse.softlayer.com', which resembles IPv4-address itself.

130111  4:00:00 [Note] /usr/sbin/mysqld: Normal shutdown

 

130111  4:00:00 [Note] Event Scheduler: Purging the queue. 0 events

130111  4:00:02 [Warning] /usr/sbin/mysqld: Forcing close of thread 410210  user: 'root'

 

http://dev.mysql.com/doc/refman/5.5/en/host-cache.html DNS 高速緩存 問題

 

http://dev.mysql.com/doc/refman/5.5/en/blocked-host.html  解決方案

 

SET GLOBAL max_connect_errors=10000;

 

錯誤日志有類似警告:

120119 16:26:04 [Warning] IP address '192.168.0.110' could not be resolved: Name or service not known

120119 16:26:04 [Warning] IP address '192.168.0.104' could not be resolved: Name or service not known

120119 16:26:04 [Warning] IP address '192.168.0.147' could not be resolved: Name or service not known

通過show processlist發現大量類似如下的連接:

|592|unauthenticated user|192.168.3.20:35320|NULL|Connect| |login|NULL|
|593|unauthenticated user|192.168.3.20:35321|NULL|Connect| |login|NULL|
|594|unauthenticated user|192.168.3.20:35322|NULL|Connect| |login|NULL|

 

skip-name-resolve 參數的目的是不再進行反解析(ip不反解成域名),這樣可以加快數據庫的反應時間。

修改配置文件添加並需要重啟:

[mysqld] 

skip-name-resolve

添加后發現錯誤日志有

120203 10:21:06 [Warning] 'user' entry 'root@r590ubuntu' ignored in --skip-name-resolve mode.
120203 10:21:06 [Warning] 'user' entry '@r590ubuntu' ignored in --skip-name-resolve mode.

只需去服務器里邊把用戶root@r590ubuntu和@r590ubuntu刪除即可。

 

錯誤:

:57 [Note] Flashcache bypass: disabled

130116 20:14:57 [Note] Flashcache setup error is : ioctl failed

 

地址: http://bugs.mysql.com/bug.php?id=64927

 

130201  3:29:07 [Warning] IP address '222.217.223.49' could not be resolved: Temporary failure in name resolution

http://blog.csdn.net/lxpbs8851/article/details/7892256

解決方案:

[mysqld]

--skip-host-cache
--skip-name-resolve

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM