Author: shinz
Date: 2006-02-28 23:36:12 +0100 (Tue, 28 Feb 2006)
New Revision: 1468
Log:
Add section on enabling both mysql and mysqli in PHP
Modified:
trunk/refman-4.1/apis.xml
trunk/refman-5.0/apis.xml
trunk/refman-5.1/apis.xml
trunk/refman-common/titles.en.ent
Modified: trunk/refman-4.1/apis.xml
===================================================================
--- trunk/refman-4.1/apis.xml 2006-02-28 22:03:07 UTC (rev 1467)
+++ trunk/refman-4.1/apis.xml 2006-02-28 22:36:12 UTC (rev 1468)
@@ -12991,8 +12991,15 @@
</listitem>
</itemizedlist>
-
+
<para>
+ If you're experiencing problems with enabling both the
+ <literal>mysql</literal> and the <literal>mysqli</literal>
+ extension when building PHP on Linux yourself, see
+ <xref linkend="php-mysql-mysqli"/>.
+ </para>
+
+ <para>
The PHP distribution and documentation are available from the
<ulink url="http://www.php.net/">PHP Web site</ulink>. MySQL
provides the <literal>mysql</literal> and
@@ -13064,6 +13071,62 @@
</para>
</section>
+
+ <section id="php-mysql-mysqli">
+
+ <title>&title-php-mysql-mysqli;</title>
+
+ <para>
+ If you're experiencing problems with enabling both the
+ <literal>mysql</literal> and the <literal>mysqli</literal>
+ extension when building PHP on Linux yourself, you should try
+ the following procedure.
+ </para>
+
+ <orderedlist>
+
+ <listitem>
+ <para>
+ Configure PHP like this:
+
+ <programlisting>
+ ./configure --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr
+ </programlisting>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Edit the <filename>Makefile</filename> and search for a line
+ that starts with <literal>EXTRA_LIBS</literal>. It might
+ look like this:
+
+ <programlisting>
+ EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt
+ </programlisting>
+
+ Remove all duplicates, so that the line looks like this:
+
+ <programlisting>
+ EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lxml2
+ </programlisting>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Build and install PHP:
+
+ <programlisting>
+ make
+ make install
+ </programlisting>
+ </para>
+ </listitem>
+
+ </orderedlist>
+
+ </section>
</section>
Modified: trunk/refman-5.0/apis.xml
===================================================================
--- trunk/refman-5.0/apis.xml 2006-02-28 22:03:07 UTC (rev 1467)
+++ trunk/refman-5.0/apis.xml 2006-02-28 22:36:12 UTC (rev 1468)
@@ -12958,8 +12958,15 @@
</listitem>
</itemizedlist>
-
+
<para>
+ If you're experiencing problems with enabling both the
+ <literal>mysql</literal> and the <literal>mysqli</literal>
+ extension when building PHP on Linux yourself, see
+ <xref linkend="php-mysql-mysqli"/>.
+ </para>
+
+ <para>
The PHP distribution and documentation are available from the
<ulink url="http://www.php.net/">PHP Web site</ulink>. MySQL
provides the <literal>mysql</literal> and
@@ -13031,7 +13038,63 @@
</para>
</section>
-
+
+ <section id="php-mysql-mysqli">
+
+ <title>&title-php-mysql-mysqli;</title>
+
+ <para>
+ If you're experiencing problems with enabling both the
+ <literal>mysql</literal> and the <literal>mysqli</literal>
+ extension when building PHP on Linux yourself, you should try
+ the following procedure.
+ </para>
+
+ <orderedlist>
+
+ <listitem>
+ <para>
+ Configure PHP like this:
+
+ <programlisting>
+ ./configure --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr
+ </programlisting>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Edit the <filename>Makefile</filename> and search for a line
+ that starts with <literal>EXTRA_LIBS</literal>. It might
+ look like this:
+
+ <programlisting>
+ EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt
+ </programlisting>
+
+ Remove all duplicates, so that the line looks like this:
+
+ <programlisting>
+ EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lxml2
+ </programlisting>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Build and install PHP:
+
+ <programlisting>
+ make
+ make install
+ </programlisting>
+ </para>
+ </listitem>
+
+ </orderedlist>
+
+ </section>
+
</section>
<section id="perl">
Modified: trunk/refman-5.1/apis.xml
===================================================================
--- trunk/refman-5.1/apis.xml 2006-02-28 22:03:07 UTC (rev 1467)
+++ trunk/refman-5.1/apis.xml 2006-02-28 22:36:12 UTC (rev 1468)
@@ -12950,6 +12950,13 @@
</itemizedlist>
<para>
+ If you're experiencing problems with enabling both the
+ <literal>mysql</literal> and the <literal>mysqli</literal>
+ extension when building PHP on Linux yourself, see
+ <xref linkend="php-mysql-mysqli"/>.
+ </para>
+
+ <para>
The PHP distribution and documentation are available from the
<ulink url="http://www.php.net/">PHP Web site</ulink>. MySQL
provides the <literal>mysql</literal> and
@@ -13022,6 +13029,62 @@
</section>
+ <section id="php-mysql-mysqli">
+
+ <title>&title-php-mysql-mysqli;</title>
+
+ <para>
+ If you're experiencing problems with enabling both the
+ <literal>mysql</literal> and the <literal>mysqli</literal>
+ extension when building PHP on Linux yourself, you should try
+ the following procedure.
+ </para>
+
+ <orderedlist>
+
+ <listitem>
+ <para>
+ Configure PHP like this:
+
+<programlisting>
+./configure --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr
+</programlisting>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Edit the <filename>Makefile</filename> and search for a line
+ that starts with <literal>EXTRA_LIBS</literal>. It might
+ look like this:
+
+<programlisting>
+EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt
+</programlisting>
+
+ Remove all duplicates, so that the line looks like this:
+
+<programlisting>
+EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lxml2
+</programlisting>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Build and install PHP:
+
+<programlisting>
+make
+make install
+</programlisting>
+ </para>
+ </listitem>
+
+ </orderedlist>
+
+ </section>
+
</section>
<section id="perl">
Modified: trunk/refman-common/titles.en.ent
===================================================================
--- trunk/refman-common/titles.en.ent 2006-02-28 22:03:07 UTC (rev 1467)
+++ trunk/refman-common/titles.en.ent 2006-02-28 22:36:12 UTC (rev 1468)
@@ -1357,6 +1357,8 @@
<!ENTITY title-perror-for-manual "Explain Error Codes">
<!ENTITY title-php "MySQL PHP API">
<!ENTITY title-php-problems "Common Problems with MySQL and PHP">
+<!ENTITY title-php-mysql-mysqli "Enabling Both <literal>mysql</literal> and
+<literal>mysqli</literal> in PHP">
<!ENTITY title-pluggable-storage "Pluggable Storage Engine Architecture">
<!ENTITY title-pluggable-storage-assigning "Assigning Storage Engines to Tables">
<!ENTITY title-pluggable-storage-choosing "Choosing a Storage Engine">
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r1468 - in trunk: refman-4.1 refman-5.0 refman-5.1 refman-common | stefan | 28 Feb |