Skip to content

Commit 57a2f4c

Browse files
Add user and password to PDO_MYSQL DSN (#5706)
1 parent 5f0cb24 commit 57a2f4c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎reference/pdo_mysql/reference.xml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,26 @@
104104
</para>
105105
</listitem>
106106
</varlistentry>
107+
<varlistentry>
108+
<term><literal>user</literal></term>
109+
<listitem>
110+
<simpara>
111+
The name of the user for the connection. A user name given as the
112+
second argument to the <classname>PDO</classname> constructor takes
113+
precedence over one specified in the DSN.
114+
</simpara>
115+
</listitem>
116+
</varlistentry>
117+
<varlistentry>
118+
<term><literal>password</literal></term>
119+
<listitem>
120+
<simpara>
121+
The password of the user for the connection. A password given as the
122+
third argument to the <classname>PDO</classname> constructor takes
123+
precedence over one specified in the DSN.
124+
</simpara>
125+
</listitem>
126+
</varlistentry>
107127
<varlistentry>
108128
<term><literal>unix_socket</literal></term>
109129
<listitem>

0 commit comments

Comments
 (0)