Score:0

How to set the 'source address' ProxySQL uses to connect to MariaDB?

tr flag

I'm deploying ProxySQL on Docker. When I try connecting to my database via ProxySQL, MariaDB rejected my login attempt as follows:

Access denied for user 'usarr'@'172.18.0.1'

(172.18.0.1 is the container's "internal" IP address.)

The Docker host itself has LAN address of 192.168.9.22. And the user configured in MariaDB is 'usarr'@'192.168.9.%'

How do I configure ProxySQL to connect as [email protected]?

I've tried reading the (very confusing) documentation for ProxySQL and couldn't figure out how.

markusjm avatar
cn flag
If you're looking for an alternative approach, MariaDB MaxScale also supports [the proxy protocol](https://mariadb.com/kb/en/mariadb-maxscale-6-mariadb-maxscale-configuration-guide/#proxy_protocol). One thing to remember is to make sure you have the ProxySQL IP in the [proxy_protocol_networks](https://mariadb.com/kb/en/server-system-variables/#proxy_protocol_networks) variable, otherwise it won't accept it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.