mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 06:52:14 +08:00
Updated to MySQL-5.0.16
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5411 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
ef2519d821
commit
9dfd852b38
@ -306,7 +306,7 @@
|
|||||||
<!ENTITY db-version "4.3.29">
|
<!ENTITY db-version "4.3.29">
|
||||||
<!-- End special note about Heimdal -->
|
<!-- End special note about Heimdal -->
|
||||||
|
|
||||||
<!ENTITY mysql-version "4.1.14">
|
<!ENTITY mysql-version "5.0.16">
|
||||||
<!ENTITY postgresql-version "8.0.3">
|
<!ENTITY postgresql-version "8.0.3">
|
||||||
|
|
||||||
<!-- Chapter 24 -->
|
<!-- Chapter 24 -->
|
||||||
|
@ -44,6 +44,9 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>December 13th, 2005</para>
|
<para>December 13th, 2005</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[randy] - Updated to MySQL-5.0.16.</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>[bdubbs] - Update koffice to version 1.4.2.</para>
|
<para>[bdubbs] - Update koffice to version 1.4.2.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
||||||
%general-entities;
|
%general-entities;
|
||||||
|
|
||||||
<!ENTITY mysql-download-http "http://mysql.he.net/Downloads/MySQL-4.1/mysql-&mysql-version;.tar.gz">
|
<!ENTITY mysql-download-http "http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-&mysql-version;.tar.gz/from/http://mysql.mirrors.hoobly.com/">
|
||||||
<!ENTITY mysql-download-ftp "ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/MySQL-4.1/mysql-&mysql-version;.tar.gz">
|
<!ENTITY mysql-download-ftp "ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/MySQL-5.0/mysql-&mysql-version;.tar.gz">
|
||||||
<!ENTITY mysql-md5sum "98ba9caea24b0a48ee06bb242ff2e37f">
|
<!ENTITY mysql-md5sum "ecf2ae1d782a8d129af940c15a44f477">
|
||||||
<!ENTITY mysql-size "17 MB">
|
<!ENTITY mysql-size "19.0 MB">
|
||||||
<!ENTITY mysql-buildsize "182 MB (additional 110 MB to run the test suite)">
|
<!ENTITY mysql-buildsize "195 MB (additional 180 MB to run the test suite)">
|
||||||
<!ENTITY mysql-time "3.5 SBU (additional 12 SBU to run the test suite)">
|
<!ENTITY mysql-time "3.8 SBU (additional 14.1 SBU to run the test suite)">
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<sect1 id="mysql" xreflabel="MySQL-&mysql-version;">
|
<sect1 id="mysql" xreflabel="MySQL-&mysql-version;">
|
||||||
@ -63,13 +63,17 @@
|
|||||||
|
|
||||||
<bridgehead renderas="sect4">Optional</bridgehead>
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
||||||
<para role="optional"><xref linkend="openssl"/>,
|
<para role="optional"><xref linkend="openssl"/>,
|
||||||
<xref linkend="tcpwrappers"/>,
|
<xref linkend="tcpwrappers"/> and
|
||||||
<ulink url="http://sourceforge.net/projects/libedit/">libedit</ulink>
|
<ulink url="http://sourceforge.net/projects/libedit/">libedit</ulink>
|
||||||
(as an alternative to readline),
|
(as an alternative to readline)</para>
|
||||||
<xref linkend="ORBit"/> (detected only if <xref linkend="which"/> is
|
|
||||||
installed),
|
<!-- These appear to be obsolete now that the docs have been pulled
|
||||||
|
out of the main tarball. Configure still checks for them, but
|
||||||
|
best I can tell, they are not used, nor can be used even if found
|
||||||
|
|
||||||
<xref linkend="doxygen"/> and
|
<xref linkend="doxygen"/> and
|
||||||
<xref linkend="tex"/></para>
|
<xref linkend="tex"/></para>
|
||||||
|
-->
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
@ -86,19 +90,42 @@ useradd -c "MySQL Server" -d /dev/null -g mysql -s /bin/false \
|
|||||||
<para>Build and install <application>MySQL</application> by
|
<para>Build and install <application>MySQL</application> by
|
||||||
running the following commands:</para>
|
running the following commands:</para>
|
||||||
|
|
||||||
<screen><userinput>CPPFLAGS="-D_GNU_SOURCE" ./configure --prefix=/usr --sysconfdir=/etc \
|
<!-- Removing the CPPFLAGS="-D_GNU_SOURCE" and
|
||||||
--libexecdir=/usr/sbin --localstatedir=/srv/mysql \
|
-with-named-thread-libs=-lpthread as they don't appear to be
|
||||||
--enable-thread-safe-client --enable-assembler \
|
required any longer
|
||||||
--enable-local-infile --with-named-thread-libs=-lpthread \
|
-->
|
||||||
--with-unix-socket-path=/var/run/mysql/mysql.sock \
|
|
||||||
--without-debug --without-bench --without-readline &&
|
<screen><userinput>./configure --prefix=/usr \
|
||||||
make testdir=/usr/lib/mysql/mysql-test</userinput></screen>
|
--sysconfdir=/etc \
|
||||||
|
--libexecdir=/usr/sbin \
|
||||||
|
--localstatedir=/srv/mysql \
|
||||||
|
--enable-thread-safe-client \
|
||||||
|
--enable-assembler \
|
||||||
|
--enable-local-infile \
|
||||||
|
--with-unix-socket-path=/var/run/mysql/mysql.sock \
|
||||||
|
--without-debug \
|
||||||
|
--without-bench \
|
||||||
|
--without-readline &&
|
||||||
|
make testdir=/tmp/mysql</userinput></screen>
|
||||||
|
|
||||||
|
<para>Some of the tests in the test suite are known to fail and this will
|
||||||
|
cause the test suite to abort at that point. Issue the following command
|
||||||
|
to disable the tests known to fail:</para>
|
||||||
|
|
||||||
|
<screen><userinput>for TESTFILE in information_schema innodb join mysql_client_test \
|
||||||
|
ps_2myisam ps_3innodb ps_4heap ps_5merge \
|
||||||
|
sp-error strict type_float type_ranges
|
||||||
|
do
|
||||||
|
mv mysql-test/t/$TESTFILE.test mysql-test/t/$TESTFILE.test.disabled
|
||||||
|
done
|
||||||
|
unset TESTFILE</userinput></screen>
|
||||||
|
|
||||||
<para>To test the results, issue: <command>make test</command>.</para>
|
<para>To test the results, issue: <command>make test</command>.</para>
|
||||||
|
|
||||||
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>make testdir=/usr/lib/mysql/mysql-test install &&
|
<screen role="root"><userinput>make testdir=/tmp/mysql install &&
|
||||||
|
rm -rf /tmp/mysql &&
|
||||||
cd /usr/lib &&
|
cd /usr/lib &&
|
||||||
ln -v -sf mysql/libmysqlclient{,_r}.so* .</userinput></screen>
|
ln -v -sf mysql/libmysqlclient{,_r}.so* .</userinput></screen>
|
||||||
|
|
||||||
@ -118,7 +145,8 @@ install -v -m644 Docs/Images/*.{jpg,gif} /usr/share/mysql/Docs/Images &&
|
|||||||
<title>Command Explanations</title>
|
<title>Command Explanations</title>
|
||||||
|
|
||||||
<para><parameter>--libexecdir=/usr/sbin</parameter>: This switch installs
|
<para><parameter>--libexecdir=/usr/sbin</parameter>: This switch installs
|
||||||
the <command>mysqld</command> daemon in an appropriate location.</para>
|
the <command>mysqld</command> daemon and the
|
||||||
|
<command>mysqlmanager</command> program in an appropriate location.</para>
|
||||||
|
|
||||||
<para><parameter>--localstatedir=/srv/mysql</parameter>: This switch
|
<para><parameter>--localstatedir=/srv/mysql</parameter>: This switch
|
||||||
forces <application>MySQL</application> to use
|
forces <application>MySQL</application> to use
|
||||||
@ -135,10 +163,12 @@ install -v -m644 Docs/Images/*.{jpg,gif} /usr/share/mysql/Docs/Images &&
|
|||||||
<para><parameter>--enable-local-infile</parameter>: This switch enables
|
<para><parameter>--enable-local-infile</parameter>: This switch enables
|
||||||
the <quote>LOAD DATA INFILE</quote> SQL statement.</para>
|
the <quote>LOAD DATA INFILE</quote> SQL statement.</para>
|
||||||
|
|
||||||
|
<!-- Removing for now. See explanation above
|
||||||
<para><parameter>CPPFLAGS="-D_GNU_SOURCE"</parameter> and
|
<para><parameter>CPPFLAGS="-D_GNU_SOURCE"</parameter> and
|
||||||
<parameter>--with-named-thread-libs=-lpthread</parameter>: This environment
|
<parameter>-with-named-thread-libs=-lpthread</parameter>: This environment
|
||||||
variable and <command>configure</command> switch enables building the
|
variable and <command>configure</command> switch enables building the
|
||||||
package on NPTL systems.</para>
|
package on NPTL systems.</para>
|
||||||
|
-->
|
||||||
|
|
||||||
<para><parameter>--with-unix-socket-path=/var/run/mysql</parameter>:
|
<para><parameter>--with-unix-socket-path=/var/run/mysql</parameter>:
|
||||||
This switch puts the unix-domain socket into the
|
This switch puts the unix-domain socket into the
|
||||||
@ -153,20 +183,21 @@ install -v -m644 Docs/Images/*.{jpg,gif} /usr/share/mysql/Docs/Images &&
|
|||||||
of the bundled copy.</para>
|
of the bundled copy.</para>
|
||||||
|
|
||||||
<para><command>make testdir=...</command>: This installs the test suite in
|
<para><command>make testdir=...</command>: This installs the test suite in
|
||||||
<filename class='directory'>/usr/lib/mysql/mysql-test</filename>.
|
<filename class='directory'>/tmp/mysql</filename>. The test suite is not
|
||||||
BLFS is currently seeking a method to omit the installation
|
required, nor does it function properly on an installed version of
|
||||||
of the test suite altogether.</para>
|
<application>MySQL</application>, so it is removed in the next step.</para>
|
||||||
|
|
||||||
<para><command>ln -sf mysql/libmysqlclient{,_r}.so* .</command>: This
|
<para><command>ln -v -sf mysql/libmysqlclient{,_r}.so* .</command>: This
|
||||||
command makes the <application>MySQL</application> shared libraries
|
command makes the <application>MySQL</application> shared libraries
|
||||||
available to other packages at run-time.</para>
|
available to other packages at run-time.</para>
|
||||||
|
|
||||||
<para><option>--with-libwrap</option>: This switch adds tcpwrappers
|
|
||||||
support to <application>MySQL</application>.</para>
|
|
||||||
|
|
||||||
<para><option>--with-openssl</option>: This switch adds OpenSSL support
|
<para><option>--with-openssl</option>: This switch adds OpenSSL support
|
||||||
to <application>MySQL</application>.</para>
|
to <application>MySQL</application>.</para>
|
||||||
|
|
||||||
|
<para><option>--with-libwrap</option>: This switch adds tcpwrappers
|
||||||
|
support to <application>MySQL</application>. As of MySQL-&mysql-version;,
|
||||||
|
this option is known to break the build.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 role="configuration">
|
<sect2 role="configuration">
|
||||||
@ -206,14 +237,14 @@ install -v -m644 Docs/Images/*.{jpg,gif} /usr/share/mysql/Docs/Images &&
|
|||||||
chgrp -v mysql /srv/mysql{,/test,/mysql}</userinput></screen>
|
chgrp -v mysql /srv/mysql{,/test,/mysql}</userinput></screen>
|
||||||
|
|
||||||
<para>Further configuration requires that the
|
<para>Further configuration requires that the
|
||||||
<application>MySQL</application> server be running. Start
|
<application>MySQL</application> server is running. Start
|
||||||
the server using the following commands as the <systemitem
|
the server using the following commands as the <systemitem
|
||||||
class="username">root</systemitem> user:</para>
|
class="username">root</systemitem> user:</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>install -v -m755 -o mysql -g mysql -d /var/run/mysql &&
|
<screen role="root"><userinput>install -v -m755 -o mysql -g mysql -d /var/run/mysql &&
|
||||||
mysqld_safe --user=mysql 2>&1 >/dev/null &</userinput></screen>
|
mysqld_safe --user=mysql 2>&1 >/dev/null &</userinput></screen>
|
||||||
|
|
||||||
<para>A default installation does not setup a password for the
|
<para>A default installation does not set up a password for the
|
||||||
administrator, so use the following command as the <systemitem
|
administrator, so use the following command as the <systemitem
|
||||||
class="username">root</systemitem> user to set one. Replace
|
class="username">root</systemitem> user to set one. Replace
|
||||||
<replaceable>[new-password]</replaceable> with your own.</para>
|
<replaceable>[new-password]</replaceable> with your own.</para>
|
||||||
@ -255,20 +286,21 @@ mysqld_safe --user=mysql 2>&1 >/dev/null &</userinput></screen>
|
|||||||
<segtitle>Installed Directories</segtitle>
|
<segtitle>Installed Directories</segtitle>
|
||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>comp_err, isamchk, isamlog, make_win_binary_distribution,
|
<seg>comp_err, innochecksum, msql2mysql, my_print_defaults,
|
||||||
make_win_src_distribution, msql2mysql, my_print_defaults, myisam_ftdump,
|
myisam_ftdump, myisamchk, myisamlog, myisampack, mysql,
|
||||||
myisamchk, myisamlog, myisampack, mysql, mysql_client_test, mysql_config,
|
mysql_client_test, mysql_config, mysql_convert_table_format,
|
||||||
mysql_convert_table_format, mysql_create_system_tables, mysql_explain_log,
|
mysql_create_system_tables, mysql_explain_log, mysql_find_rows,
|
||||||
mysql_find_rows, mysql_fix_extensions, mysql_fix_privilege_tables,
|
mysql_fix_extensions, mysql_fix_privilege_tables, mysql_install_db,
|
||||||
mysql_install_db, mysql_secure_installation, mysql_setpermission,
|
mysql_secure_installation, mysql_setpermission, mysql_tableinfo,
|
||||||
mysql_tableinfo, mysql_tzinfo_to_sql, mysql_waitpid, mysql_zap, mysqlaccess,
|
mysql_tzinfo_to_sql, mysql_waitpid, mysql_zap, mysqlaccess, mysqladmin,
|
||||||
mysqladmin, mysqlbinlog, mysqlbug, mysqlcheck, mysqld, mysqld_multi,
|
mysqlbinlog, mysqlbug, mysqlcheck, mysqld, mysqld_multi, mysqld_safe,
|
||||||
mysqld_safe, mysqldump, mysqldumpslow, mysqlhotcopy, mysqlimport,
|
mysqldump, mysqldumpslow, mysqlhotcopy, mysqlimport, mysqlmanager,
|
||||||
mysqlmanager, mysqlmanager-pwgen, mysqlmanagerc, mysqlshow, mysqltest,
|
mysqlshow, mysqltest, mysqltestmanager, mysqltestmanager-pwgen,
|
||||||
pack_isam, perror, replace, resolve_stack_dump, and resolveip</seg>
|
mysqltestmanagerc, perror, replace, resolve_stack_dump, and
|
||||||
<seg>libdbug.a, libheap.a, libmerge.a, libmyisam.a, libmyisammrg.a,
|
resolveip</seg>
|
||||||
libmysqlclient.[so,a], libmysqlclient_r.[so,a], libmystrings.a, libmysys.a,
|
<seg>libdbug.a, libheap.a, libmyisam.a, libmyisammrg.a,
|
||||||
libnisam.a, and libvio.a</seg>
|
libmysqlclient.[so,a], libmysqlclient_r.[so,a], libmystrings.a,
|
||||||
|
libmysys.a, and libvio.a</seg>
|
||||||
<seg>/srv/mysql, /usr/include/mysql, /usr/lib/mysql, /usr/share/mysql, and
|
<seg>/srv/mysql, /usr/include/mysql, /usr/lib/mysql, /usr/share/mysql, and
|
||||||
/var/run/mysql</seg>
|
/var/run/mysql</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
@ -277,12 +309,13 @@ mysqld_safe --user=mysql 2>&1 >/dev/null &</userinput></screen>
|
|||||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||||
|
|
||||||
<para>Descriptions of all the programs and libraries would be several
|
<para>Descriptions of all the programs and libraries would be several
|
||||||
pages long. Instead, consult the <application>MySQL</application>
|
pages long. Instead, consult the <filename>mysql.info</filename>
|
||||||
documentation for full details.</para>
|
documentation or the on-line reference manual at <ulink
|
||||||
|
url="http://dev.mysql.com/doc/refman/5.0/en/index.html"/>.</para>
|
||||||
|
|
||||||
<para>Certain <application>MySQL</application> support programs may
|
<para>The <application>Perl</application> DBI modules must be installed
|
||||||
require the <application>Perl</application> DBI modules to be
|
for some of the <application>MySQL</application> support programs to
|
||||||
installed to function properly.</para>
|
function properly.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user