Skip to content

Commit 1a273cf

Browse files
authored
Merge pull request #7867 from ovh/public_cloud_db_update_mysql_php_connect
Clarify instruction on the PHP extensions and update the PDO config
2 parents 3668e09 + af4d532 commit 1a273cf

File tree

15 files changed

+60
-60
lines changed

15 files changed

+60
-60
lines changed

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.de-de.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.en-asia.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.en-au.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.en-ca.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.en-gb.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.en-ie.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.en-sg.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.en-us.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.es-es.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

pages/public_cloud/public_cloud_databases/mysql_04_connect_php/guide.es-us.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MySQL - Connect with PHP
33
excerpt: Connect to your Public Cloud Databases for MySQL using the PHP programming language
4-
updated: 2022-03-08
4+
updated: 2025-05-16
55
---
66

77
## Objective
@@ -35,10 +35,10 @@ In order to do so, we will need to set up our PHP environment with MySQL drivers
3535

3636
### Setup your PHP environment
3737

38-
To interact with your MySQL instance with PHP, your development environment needs to be configured with :
38+
To interact with your MySQL instance with PHP, your development environment needs to be configured with:
3939

4040
- A compatible version of PHP;
41-
- MySQLi PHP extension;
41+
- MySQLi, PDO and OpenSSL PHP extensions installed and activated in `php.ini`;
4242

4343
Please follow the official [MySQL Drivers and Plugin](https://www.php.net/manual/en/set.mysqlinfo.php){.external} to get the latest information.
4444

@@ -99,7 +99,7 @@ $dbname = "defaultdb";
9999
$port = "20184";
100100
$options = array(
101101
PDO::MYSQL_ATTR_SSL_CA => '/<path to>/ca.pem',
102-
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true
102+
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false
103103
);
104104

105105
try {

0 commit comments

Comments
 (0)