[doc-en] master: Add user and password to PDO_MYSQL DSN (#5706)

From: Date: Wed, 12 Aug 2026 22:14:29 +0000
Subject: [doc-en] master: Add user and password to PDO_MYSQL DSN (#5706)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23557@lists.php.net to get a copy of this message
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>

« previous php.doc.cvs (#23557) next »