Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql DNS backend are multi-servers,then failed to connect #81

Open
dyrone opened this issue Oct 29, 2018 · 1 comment
Open

Mysql DNS backend are multi-servers,then failed to connect #81

dyrone opened this issue Oct 29, 2018 · 1 comment

Comments

@dyrone
Copy link

dyrone commented Oct 29, 2018

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)

@agentzh
Copy link
Member

agentzh commented Oct 29, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants