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

Add support for MariaDB connection redirection #228

Open
mirromutth opened this issue Feb 9, 2024 · 0 comments
Open

Add support for MariaDB connection redirection #228

mirromutth opened this issue Feb 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mirromutth
Copy link
Contributor

In the Ok packet of MariaDB, the session state information may contain redirect_url and the driver can keep the old connection, or redirect to the new URL.

Supporting redirection mechanism is helpful for proxy-based scenario. It is more like HTTP redirects or Oracle redirected connections. Clients get the servers’ address from proxies and connect to servers transparently without latency and computing resource wasted.

It is based on a common feature of MySQL and MariaDB, #227

See also https://jira.mariadb.org/browse/MDEV-15935 and https://mariadb.com/kb/en/ok_packet/#session_track_system_variables .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

2 participants