Skip to content

Commit 4fe248c

Browse files
committed
formatting
1 parent bc9117e commit 4fe248c

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

articles/mysql/howto-redirection.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,34 @@ Redirection is currently only supported when SSL is enabled. For details on how
3232

3333
1. Install [mysqlnd_azure](https://github.com/microsoft/mysqlnd_azure) with [PECL](https://pecl.php.net/package/mysqlnd_azure).
3434

35-
```bash
36-
sudo pecl install mysqlnd_azure
37-
```
35+
```bash
36+
sudo pecl install mysqlnd_azure
37+
```
3838

3939
2. Locate the extension directory (`extension_dir`) by running the below:
4040

41-
```bash
42-
php -i | grep "extension_dir"
43-
```
41+
```bash
42+
php -i | grep "extension_dir"
43+
```
4444

4545
3. Change directories to the returned folder and ensure `mysqlnd_azure.so` is located in this folder.
4646

4747
4. Locate the folder for .ini files by running the below:
4848

49-
```bash
50-
php -i | grep "dir for additional .ini files"
51-
```
49+
```bash
50+
php -i | grep "dir for additional .ini files"
51+
```
5252

5353
5. Change directories to this returned folder.
5454

5555
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`.
5656

5757
7. Within the new .ini file, add the following lines to enable redirection.
5858

59-
```bash
60-
extension=mysqlnd_azure
61-
mysqlnd_azure.enabled=on
62-
```
59+
```bash
60+
extension=mysqlnd_azure
61+
mysqlnd_azure.enabled=on
62+
```
6363

6464
### Windows
6565

@@ -70,41 +70,41 @@ mysqlnd_azure.enabled=on
7070

7171
1. Determine if you are running x64 or x86 version of PHP by running the following command
7272

73-
```cmd
74-
php -i | findstr "Thread"
75-
```
73+
```cmd
74+
php -i | findstr "Thread"
75+
```
7676

7777
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.
7878

7979
3. Extract the zip file and find the DLL named `php_mysqlnd_azure.dll`.
8080

8181
4. Locate the extension directory (`extension_dir`) by running the below command:
8282

83-
```cmd
84-
php -i | find "extension_dir"s
85-
```
83+
```cmd
84+
php -i | find "extension_dir"s
85+
```
8686

8787
5. Copy the `php_mysqlnd_azure.dll` file into the directory from returned in step 4.
8888

8989
6. Locate the PHP folder containing the `php.ini` file using the following command
9090

91-
```cmd
92-
php -i | find "Loaded Configuration File"
93-
```
91+
```cmd
92+
php -i | find "Loaded Configuration File"
93+
```
9494

9595
7. Modify the `php.ini` file and add the following extra lines to enable redirection.
9696

97-
Under the Dynamic Extensions section:
98-
```cmd
99-
extension=mysqlnd_azure
100-
```
101-
102-
Under the Module Settings section:
103-
104-
```cmd
105-
[mysqlnd_azure]
106-
mysqlnd_azure.enabled=on
107-
```
97+
Under the Dynamic Extensions section:
98+
```cmd
99+
extension=mysqlnd_azure
100+
```
101+
102+
Under the Module Settings section:
103+
104+
```cmd
105+
[mysqlnd_azure]
106+
mysqlnd_azure.enabled=on
107+
```
108108

109109
### Confirm redirection
110110

0 commit comments

Comments
 (0)