Answer the question
In order to leave comments, you need to log in
How to use nginx as a proxy for mysql?
Good afternoon.
There is a VDS on it is ngnx which is available by ip address. Mysql is also raised on vds on localhost.
Is there a way to reach the database through nginx?
This is necessary so that from a locally raised server on the machine it will connect to the base, for the time being.
Thanks
Answer the question
In order to leave comments, you need to log in
nginx can NOT only proxy http/https traffic.
https://docs.nginx.com/nginx/admin-guide/load-bala...
Another point is that this is a terrible crutch and it is better not to do this.
but if you really want to, here's an example, straight from the nginx site
https://www.nginx.com/blog/scaling-mysql-tcp-load-...
and yes, I join the commentary about what is possible in the database without nginx connect quite successfully..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question