lua-resty-mysql
lua-resty-mysql copied to clipboard
Mysql DNS backend are multi-servers,then failed to connect
XXX.svn.xxxx.net is my mysql connection DNS. The XXX.svn.xxxx.net behiding are two different servers (two IP) So when i connection to it ,there execption get out : Failed to connect: XXX.svn.xxxx.net could not be resolved (3: Host not found): nil nil, client: XXX.XXX.XXX.XX
by LOG PRINTER : ngx.log(ngx.WARN,"1: ", err, ": ", errcode, " ", sqlstate)
@dyrone Seems like you forgot to configure the resolver directive in your nginx.conf? See
http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver