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/howto-redirection.md
+33-33Lines changed: 33 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,34 +32,34 @@ Redirection is currently only supported when SSL is enabled. For details on how
32
32
33
33
1. Install [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) with [PECL](https://pecl.php.net/package/mysqlnd_azure).
34
34
35
-
```bash
36
-
sudo pecl install mysqlnd_azure
37
-
```
35
+
```bash
36
+
sudo pecl install mysqlnd_azure
37
+
```
38
38
39
39
2. Locate the extension directory (`extension_dir`) by running the below:
40
40
41
-
```bash
42
-
php -i | grep "extension_dir"
43
-
```
41
+
```bash
42
+
php -i | grep "extension_dir"
43
+
```
44
44
45
45
3. Change directories to the returned folder and ensure `mysqlnd_azure.so` is located in this folder.
46
46
47
47
4. Locate the folder for .ini files by running the below:
48
48
49
-
```bash
50
-
php -i | grep "dir for additional .ini files"
51
-
```
49
+
```bash
50
+
php -i | grep "dir for additional .ini files"
51
+
```
52
52
53
53
5. Change directories to this returned folder.
54
54
55
55
6. Create a new .ini file for`mysqlnd_azure`. Make sure the alphabet order of the name is after that of mysqnld, since the modules are loaded according to the name order of the ini files. For example, if`mysqlnd` .ini is named `10-mysqlnd.ini`, name the mysqlnd ini as `20-mysqlnd-azure.ini`.
56
56
57
57
7. Within the new .ini file, add the following lines to enable redirection.
58
58
59
-
```bash
60
-
extension=mysqlnd_azure
61
-
mysqlnd_azure.enabled=on
62
-
```
59
+
```bash
60
+
extension=mysqlnd_azure
61
+
mysqlnd_azure.enabled=on
62
+
```
63
63
64
64
### Windows
65
65
@@ -70,41 +70,41 @@ mysqlnd_azure.enabled=on
70
70
71
71
1. Determine if you are running x64 or x86 version of PHP by running the following command
72
72
73
-
```cmd
74
-
php -i | findstr "Thread"
75
-
```
73
+
```cmd
74
+
php -i | findstr "Thread"
75
+
```
76
76
77
77
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.
78
78
79
79
3. Extract the zip file and find the DLL named `php_mysqlnd_azure.dll`.
80
80
81
81
4. Locate the extension directory (`extension_dir`) by running the below command:
82
82
83
-
```cmd
84
-
php -i | find "extension_dir"s
85
-
```
83
+
```cmd
84
+
php -i | find "extension_dir"s
85
+
```
86
86
87
87
5. Copy the `php_mysqlnd_azure.dll` file into the directory from returned in step 4.
88
88
89
89
6. Locate the PHP folder containing the `php.ini` file using the following command
90
90
91
-
```cmd
92
-
php -i | find "Loaded Configuration File"
93
-
```
91
+
```cmd
92
+
php -i | find "Loaded Configuration File"
93
+
```
94
94
95
95
7. Modify the `php.ini` file and add the following extra lines to enable redirection.
0 commit comments