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
Copy file name to clipboardExpand all lines: articles/mysql/concepts-connectivity-architecture.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,10 @@ Azure Database for MySQL supports an additional connection policy, **redirection
70
70
71
71
This feature is supported in Azure Database for MySQL servers with engine versions 5.6, 5.7, and 8.0.
72
72
73
-
Preview support for redirection is available in the [PHP mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) extension, developed by Microsoft, and is available on [PECL](https://pecl.php.net/package/mysqlnd_azure). See the [configuring redirection](./howto-redirection.md) article for more information on how to use redirection in your applications.
73
+
Support for redirection is available in the PHP [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) extension, developed by Microsoft, and is available on [PECL](https://pecl.php.net/package/mysqlnd_azure). See the [configuring redirection](./howto-redirection.md) article for more information on how to use redirection in your applications.
74
+
75
+
> [!IMPORTANT]
76
+
> Support for redirection in the PHP [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) extension is currently in preview.
Copy file name to clipboardExpand all lines: articles/mysql/howto-redirection.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.date: 03/16/2020
13
13
This topic explains how to connect an application your Azure Database for MySQL server with redirection mode. Redirection aims to reduce network latency between client applications and MySQL servers by allowing applications to connect directly to backend server nodes.
14
14
15
15
> [!IMPORTANT]
16
-
> Support for redirection in the PHP [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) is currently in preview.
16
+
> Support for redirection in the PHP [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure)extension is currently in preview.
17
17
18
18
## Before you begin
19
19
Sign in to the [Azure portal](https://portal.azure.com). Create an Azure Database for MySQL server with engine version 5.6, 5.7, or 8.0. For details, refer to [How to create Azure Database for MySQL server from Portal](quickstart-create-mysql-server-database-using-azure-portal.md) or [How to create Azure Database for MySQL server using CLI](quickstart-create-mysql-server-database-using-azure-cli.md).
@@ -24,15 +24,16 @@ Redirection is currently only supported when SSL is enabled. For details on how
24
24
25
25
It is highly recommended to use PECL to install and configure the [mysqlnd_azure](https://pecl.php.net/package/mysqlnd_azure) extension.
26
26
27
-
Redirection logic/behavior beginning version 1.10 was updated and it is recommended to use 1.10+.
28
-
29
27
### Redirection logic
30
28
31
-
The redirection behavior is determined by the value of `mysqlnd_azure.enableRedirect`. The table below outlines the behavior of redirection based on the value of this parameter.
29
+
>[!IMPORTANT]
30
+
> Redirection logic/behavior beginning version 1.1.0 was updated and **it is recommended to use 1.1.0+**.
32
31
32
+
The redirection behavior is determined by the value of `mysqlnd_azure.enableRedirect`. The table below outlines the behavior of redirection based on the value of this parameter beginning in **version 1.1.0+**.
33
33
34
+
If you are using an older version of the mysqlnd_azure extension (version 1.0.0-1.0.3), the redirection behavior is determined by the value of `mysqlnd_azure.enabled`. The valid values are `off` (acts similarly as the behavior outlined in the table below) and `on` (acts like `preferred` in the table below).
|`on` or `1`|- If SSL is not enabled on the Azure Database for MySQL server, no connection will be made. The following error will be returned: *"mysqlnd_azure.enableRedirect is on, but SSL option is not set in connection string. Redirection is only possible with SSL."*<br>- If SSL is enabled on the MySQL server, but redirection is not supported on the server, the first connection is aborted and the following error is returned: *"Connection aborted because redirection is not enabled on the MySQL server or the network package doesn't meet redirection protocol."*<br>- If the MySQL server supports redirection, but the redirected connection failed for any reason, also abort the first proxy connection. Return the error of the redirected connection.|
@@ -48,7 +49,7 @@ The subsequent sections of the document will outline how to install the `mysqlnd
48
49
- php-mysql
49
50
- Azure Database for MySQL server with SSL enabled
50
51
51
-
1. Install [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) with [PECL](https://pecl.php.net/package/mysqlnd_azure).
52
+
1. Install [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) with [PECL](https://pecl.php.net/package/mysqlnd_azure). It is recommended to use version 1.1.0+.
52
53
53
54
```bash
54
55
sudo pecl install mysqlnd_azure
@@ -92,14 +93,14 @@ The subsequent sections of the document will outline how to install the `mysqlnd
92
93
php -i | findstr "Thread"
93
94
```
94
95
95
-
2. Download the corresponding x64 or x86 version of the [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) DLL from [PECL](https://pecl.php.net/package/mysqlnd_azure) that matches your version of PHP. It is recommended to use version 1.10+.
96
+
2. Download the corresponding x64 or x86 version of the [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) DLL from [PECL](https://pecl.php.net/package/mysqlnd_azure) that matches your version of PHP. It is recommended to use version 1.1.0+.
96
97
97
98
3. Extract the zip file and find the DLL named `php_mysqlnd_azure.dll`.
98
99
99
100
4. Locate the extension directory (`extension_dir`) by running the below command:
100
101
101
102
```cmd
102
-
php -i | find "extension_dir"s
103
+
php -i | find "extension_dir"
103
104
```
104
105
105
106
5. Copy the `php_mysqlnd_azure.dll` file into the directory returned in step 4.
0 commit comments