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(
4141 array $ connConfig
4242 ): PDO {
4343 try {
44- # [START cloud_sql_mysql_pdo_create_tcp ]
44+ # [START cloud_sql_sqlserver_pdo_create_tcp ]
4545 // $username = 'your_db_user';
4646 // $password = 'yoursupersecretpassword';
4747 // $dbName = 'your_db_name';
@@ -52,7 +52,7 @@ public static function initTcpDatabaseConnection(
5252
5353 // Connect to the database
5454 $ conn = new PDO ($ dsn , $ username , $ password , $ connConfig );
55- # [END cloud_sql_mysql_pdo_create_tcp ]
55+ # [END cloud_sql_sqlserver_pdo_create_tcp ]
5656 } catch (TypeError $ e ) {
5757 throw new RuntimeException (
5858 sprintf (
@@ -72,7 +72,7 @@ public static function initTcpDatabaseConnection(
7272 'your username and password are correct, that the Cloud SQL ' .
7373 'proxy is running, and that the database exists and is ready ' .
7474 '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 ' ,
7676 $ e ->getMessage ()
7777 ),
7878 $ e ->getCode (),
You can’t perform that action at this time.
0 commit comments