4,420,061 th visitor since 2017.2.1 ( Today : 2261 )
Programming
No. 806
Name. swindler
Subject. [Warning] IP address '111.22.33.44' has been resolved to the host name 'xxx.com', which resembles IPv4-address itself.
Main Cate. MySQL
Sub Cate.
Date. 2019-01-15 12:17
Hit. 2227 (59.29.233.1)
File.
[Warning] IP address '111.22.33.44' has been resolved to the host name 'xxx.com', which resembles IPv4-address itself.


mysql 서버에 접속 할 경우 DNS질의를 진행 합니다.

이때 /etc/resolv.conf에 설정된 DNS정보가 올바르게 설정 되지 않아, 접속 지연 현상이 발생 할 수 있다.

이런 경우 아래와 같은 설정으로 해당 문제를 해결 할수있습니다.



1. my.cnf 파일에 추가
- skip-name-resolve

2. mysqld 데몬 재구동
- /usr/local/mysql/bin/mysqld_safe restart

3. 설정 조회
- mysql> SHOW VARIABLES LIKE 'skip_name_resolve';
+-------------------+-------+
| skip_name_resolve | ON |
+-------------------+-------+


해당 변수는 readonly 라서, set global 같은 형태로 설정할 수가 없다.

[바로가기 링크] : http://coolx.net/cboard/develop/806



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog