[DOC-CVS] [doc-en] master: Add user and password to PDO_MYSQL DSN (#5706)
[email protected] (Kamil Tekiela via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Kamil Tekiela (kamil-tekiela)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2026-08-12T23:14:27+01:00
Commit: https://github.com/php/doc-en/commit/57a2f4c34cc3c74a7040282dcd60b906738a523d
Raw diff: https://github.com/php/doc-en/commit/57a2f4c34cc3c74a7040282dcd60b906738a523d.diff
Add user and password to PDO_MYSQL DSN (#5706)
Changed paths:
M reference/pdo_mysql/reference.xml
Diff:
diff --git a/reference/pdo_mysql/reference.xml b/reference/pdo_mysql/reference.xml
index 4ef1dc5d512b..7f6835effa52 100644
--- a/reference/pdo_mysql/reference.xml
+++ b/reference/pdo_mysql/reference.xml
@@ -104,6 +104,26 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><literal>user</literal></term>
+ <listitem>
+ <simpara>
+ The name of the user for the connection. A user name given as the
+ second argument to the <classname>PDO</classname> constructor takes
+ precedence over one specified in the DSN.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>password</literal></term>
+ <listitem>
+ <simpara>
+ The password of the user for the connection. A password given as the
+ third argument to the <classname>PDO</classname> constructor takes
+ precedence over one specified in the DSN.
+ </simpara>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><literal>unix_socket</literal></term>
<listitem>