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
| class [MySqlTransaction](../MySqlConnector/MySqlTransactionType/)|[`MySqlTransaction`](../MySqlConnector/MySqlTransactionType/) represents an in-progress transaction on a MySQL Server. |
| class [MySqlTransaction](../MySqlConnector/MySqlTransactionType/)|[`MySqlTransaction`](../MySqlConnector/MySqlTransactionType/) represents an in-progress transaction on a MySQL Server. |
Copy file name to clipboardExpand all lines: docs/content/connection-options.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -372,8 +372,9 @@ These are the other options that MySqlConnector supports. They are set to sensib
372
372
<dt>Random</dt>
373
373
<dd>Servers are tried in a random order.</dd>
374
374
<dt>LeastConnections</dt>
375
-
<dd>Servers are tried in ascending order of number of currently-open connections in this connection pool. Requires <code>Pooling=True</code>.
375
+
<dd>Servers are tried in ascending order of number of currently-open connections in this connection pool. Requires <code>Pooling=True</code>.</dd>
376
376
</dl>
377
+
</td>
377
378
</tr>
378
379
<trid="NoBackslashEscapes">
379
380
<td>No Backslash Escapes, NoBackslashEscapes</td>
@@ -390,6 +391,22 @@ These are the other options that MySqlConnector supports. They are set to sensib
390
391
<td>false</td>
391
392
<td>When set to <code>false</code> or no (strongly recommended), security-sensitive information, such as the password, is not returned as part of the connection string if the connection is open or has ever been in an open state. Resetting the connection string resets all connection string values, including the password. Recognized values are true, false, yes, and no.</td>
392
393
</tr>
394
+
<trid="ServerRedirectionMode">
395
+
<td>ServerRedirectionMode, Server Redirection Mode</td>
396
+
<td>Disabled</td>
397
+
<td><p>Whether to use server redirection. The options include:</p>
398
+
<dl>
399
+
<dt>Disabled</dt>
400
+
<dd>Server redirection is not used. All connections go through the proxy server (if there is one).</dd>
401
+
<dt>Preferred</dt>
402
+
<dd>If the server supports redirection, a redirected connection will be attempted. If it’s successful, the redirected connection will be used; otherwise, the original connection will be used.</dd>
403
+
<dt>Required</dt>
404
+
<dd>The server must support redirection, and making a redirected connection must be successful; otherwise, an exception will be thrown.</dd>
405
+
</dl>
406
+
<p>Server Redirection is supported by Azure Database for MySQL if the <code>redirect_enabled</code> server parameter is set to <code>ON</code>.</p>
407
+
<p>This option is only respected if <code>Pooling=True</code>.
408
+
</td>
409
+
</tr>
393
410
<trid="ServerRsaPublicKeyFile">
394
411
<td>ServerRsaPublicKeyFile, Server RSA Public Key File</td>
0 commit comments