You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement Azure Database for MySQL redirection #789
A new connection string option (ServerRedirection=Off|Preferred|On). When a connection is opened to the proxy, and a Location: "header" is returned, transparently reconnect to the new server location. Should the new connection info be cached and used by default the next time the pool needs a new connection, or should each new connection hit the proxy initially to get a chance to get updated backend location information? (Probably the latter.)
After connecting, a MySqlConnection.RedirectionLocation property is populated with a connection string for the new location that can be used with CloneWith. The user is responsible for reopening a new connection and refreshing the location periodically.
I haven't heard anything from the Azure team in a while, but my understanding was that the server-side implementation of the protocol hadn't been finalised yet, so it could be premature to code a client-side implementation.
I haven't heard anything from the Azure team in a while, but my understanding was that the server-side implementation of the protocol hadn't been finalised yet, so it could be premature to code a client-side implementation.
They've been in public preview with host redirection with the php mysqlnd_azure client library since early Aug 2020.
I recently raised an Azure support request which went through to the product team, and they said they were waiting for this library (MySqlConnector) to be updated to provide equivalent dotnet support.
I see that the MariaDB PRs still aren't merged, but I haven't checked on the actual behaviour of Azure Database for MySQL since last year. I'll re-test it and see if this is ready to ship.
Activity
bgrainger commentedon Apr 3, 2020
Related PR in Connector/J: mariadb-corporation/mariadb-connector-j#134
bgrainger commentedon Apr 3, 2020
Related PR in MariaDB Server: MariaDB/server#1472
AdamCoulterOz commentedon Jan 29, 2021
@bgrainger - any idea on when this might happen? :-)
bgrainger commentedon Jan 29, 2021
I haven't heard anything from the Azure team in a while, but my understanding was that the server-side implementation of the protocol hadn't been finalised yet, so it could be premature to code a client-side implementation.
AdamCoulterOz commentedon Feb 2, 2021
They've been in public preview with host redirection with the php mysqlnd_azure client library since early Aug 2020.
https://docs.microsoft.com/en-us/azure/mysql/howto-redirection
I recently raised an Azure support request which went through to the product team, and they said they were waiting for this library (MySqlConnector) to be updated to provide equivalent dotnet support.
bgrainger commentedon Feb 5, 2021
I see that the MariaDB PRs still aren't merged, but I haven't checked on the actual behaviour of Azure Database for MySQL since last year. I'll re-test it and see if this is ready to ship.
bgrainger commentedon Feb 7, 2021
A version for Azure Database for MySQL is available in 1.3.0-beta.3.
It's opt-in, so add
ServerRedirectionMode=Preferred(or=Required) to your connection string to use it.AdamCoulterOz commentedon Feb 9, 2021
awesome! thanks @bgrainger !
bgrainger commentedon Mar 7, 2021
Added in 1.3.0.
Implement server redirection. Fixes mysql-net#789