Skip to content

Commit 45606a0

Browse files
committed
Add user and password to PDO_MYSQL DSN
1 parent 3c48a7f commit 45606a0

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. If you specify the user name
112+
in the DSN and pass it as the second argument, PDO ignores the value of
113+
the user name in 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. If you specify the
122+
password in the DSN and pass it as the third argument, PDO ignores the
123+
value of the password in DSN.
124+
</simpara>
125+
</listitem>
126+
</varlistentry>
107127
<varlistentry>
108128
<term><literal>unix_socket</literal></term>
109129
<listitem>

0 commit comments

Comments
 (0)