File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cloud_sql/sqlserver/pdo/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public static function initTcpDatabaseConnection(
41
41
array $ connConfig
42
42
): PDO {
43
43
try {
44
- # [START cloud_sql_mysql_pdo_create_tcp ]
44
+ # [START cloud_sql_sqlserver_pdo_create_tcp ]
45
45
// $username = 'your_db_user';
46
46
// $password = 'yoursupersecretpassword';
47
47
// $dbName = 'your_db_name';
@@ -52,7 +52,7 @@ public static function initTcpDatabaseConnection(
52
52
53
53
// Connect to the database
54
54
$ conn = new PDO ($ dsn , $ username , $ password , $ connConfig );
55
- # [END cloud_sql_mysql_pdo_create_tcp ]
55
+ # [END cloud_sql_sqlserver_pdo_create_tcp ]
56
56
} catch (TypeError $ e ) {
57
57
throw new RuntimeException (
58
58
sprintf (
@@ -72,7 +72,7 @@ public static function initTcpDatabaseConnection(
72
72
'your username and password are correct, that the Cloud SQL ' .
73
73
'proxy is running, and that the database exists and is ready ' .
74
74
'for use. For more assistance, refer to %s. The PDO error was %s ' ,
75
- 'https://cloud.google.com/sql/docs/mysql /connect-external-app ' ,
75
+ 'https://cloud.google.com/sql/docs/sqlserver /connect-external-app ' ,
76
76
$ e ->getMessage ()
77
77
),
78
78
$ e ->getCode (),
You can’t perform that action at this time.
0 commit comments