From 45606a028b934258f85d130deaf62c188accecdc Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Fri, 24 Jul 2026 15:00:27 +0100 Subject: [PATCH 1/3] Add user and password to PDO_MYSQL DSN --- reference/pdo_mysql/reference.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/reference/pdo_mysql/reference.xml b/reference/pdo_mysql/reference.xml index 4ef1dc5d512b..1debd2c19a32 100644 --- a/reference/pdo_mysql/reference.xml +++ b/reference/pdo_mysql/reference.xml @@ -104,6 +104,26 @@ + + user + + + The name of the user for the connection. If you specify the user name + in the DSN and pass it as the second argument, PDO ignores the value of + the user name in DSN. + + + + + password + + + The password of the user for the connection. If you specify the + password in the DSN and pass it as the third argument, PDO ignores the + value of the password in DSN. + + + unix_socket From 455e0a115938d7b1621e3c04feaa948fc7d2d32a Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Mon, 3 Aug 2026 11:29:37 +0100 Subject: [PATCH 2/3] Update reference/pdo_mysql/reference.xml Co-authored-by: Louis-Arnaud --- reference/pdo_mysql/reference.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/pdo_mysql/reference.xml b/reference/pdo_mysql/reference.xml index 1debd2c19a32..fb4763729542 100644 --- a/reference/pdo_mysql/reference.xml +++ b/reference/pdo_mysql/reference.xml @@ -108,9 +108,9 @@ user - The name of the user for the connection. If you specify the user name - in the DSN and pass it as the second argument, PDO ignores the value of - the user name in DSN. + The name of the user for the connection. A user name given as the + second argument to the PDO constructor takes + precedence over one specified in the DSN. From cd8bd0675bf96478066c115d395a83bb06653701 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Mon, 3 Aug 2026 11:29:57 +0100 Subject: [PATCH 3/3] Update reference/pdo_mysql/reference.xml Co-authored-by: Louis-Arnaud --- reference/pdo_mysql/reference.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/pdo_mysql/reference.xml b/reference/pdo_mysql/reference.xml index fb4763729542..7f6835effa52 100644 --- a/reference/pdo_mysql/reference.xml +++ b/reference/pdo_mysql/reference.xml @@ -118,9 +118,9 @@ password - The password of the user for the connection. If you specify the - password in the DSN and pass it as the third argument, PDO ignores the - value of the password in DSN. + The password of the user for the connection. A password given as the + third argument to the PDO constructor takes + precedence over one specified in the DSN.