mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
add port and unix_socket options, per user note
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@202763 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
699192d1b0
commit
6412b03958
1 changed files with 27 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- Purpose: database.vendors -->
|
||||
<!-- Membership: bundled, external, pecl -->
|
||||
|
||||
|
@ -60,6 +60,14 @@
|
|||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><constant>port</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The port number where the database server is listening.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><constant>dbname</constant></term>
|
||||
<listitem>
|
||||
|
@ -68,6 +76,15 @@
|
|||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><constant>unix_socket</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The MySQL unix socket (shouldn't be used with <literal>host</literal>
|
||||
or <literal>port</literal>).
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -79,8 +96,16 @@
|
|||
<para>
|
||||
The following example shows a PDO_MYSQL DSN for connecting to
|
||||
MySQL databases:
|
||||
<programlisting><![CDATA[
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
mysql:host=localhost;dbname=testdb
|
||||
]]>
|
||||
</programlisting>
|
||||
More complete examples:
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
mysql:host=localhost;port=3307;dbname=testdb
|
||||
mysql:unix_socket=/tmp/mysql.sock;dbname=testdb
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue