Changeset 4b93ac2 for content


Ignore:
Timestamp:
07/28/2004 06:47:21 AM (20 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
68df39bf
Parents:
7172e4f
Message:

Fixed MySQL instructions to build against NPTL and added optional dependencies and command explanations

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2510 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/databases/mysql.xml

    r7172e4f r4b93ac2  
    1717
    1818<sect2>
    19 <title>Introduction to <application>My<acronym>SQL</acronym></application></title>
    20 
    21 <para><application>My<acronym>SQL</acronym></application> is a widely used and fast
    22 <acronym>SQL</acronym> database server. It is a client/server
     19<title>Introduction to <application>My<acronym>SQL</acronym></application>
     20</title>
     21
     22<para><application>My<acronym>SQL</acronym></application> is a widely used and
     23fast <acronym>SQL</acronym> database server. It is a client/server
    2324implementation that consists of a server daemon and many different
    2425client programs and libraries.</para>
     
    3334</sect3>
    3435
    35 <sect3><title><application>My<acronym>SQL</acronym></application> dependencies</title>
     36<sect3><title>Additional downloads</title>
     37<itemizedlist spacing='compact'>
     38<listitem><para>Required Patch (for building against NPTL): <ulink
     39url="&patch-root;/mysql-&mysql-version;-nptl-1.patch"/></para></listitem>
     40</itemizedlist></sect3>
     41
     42<sect3><title><application>My<acronym>SQL</acronym></application> dependencies
     43</title>
    3644<sect4><title>Optional</title>
    37 <para><xref linkend="openssl"/> and
    38 <xref linkend="tcpwrappers"/>
     45<para><xref linkend="openssl"/>, <xref linkend="tcpwrappers"/>,
     46<xref linkend="which"/> and <xref linkend="ORBit"/>
    3947</para></sect4>
    4048</sect3>
     
    4351
    4452<sect2>
    45 <title>Installation of <application>My<acronym>SQL</acronym></application></title>
     53<title>Installation of <application>My<acronym>SQL</acronym></application>
     54</title>
    4655
    4756<para>For security reasons, running the server as an unprivileged user
     
    5160useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql</command></userinput></screen>
    5261
    53 <para>Build and install <application>My<acronym>SQL</acronym></application> by running the following commands:</para>
    54 
    55 <screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc \
    56     --libexecdir=/usr/sbin --localstatedir=/var/lib/mysql \
    57     --enable-thread-safe-client --enable-local-infile \
    58     --enable-assembler --without-debug --without-bench &amp;&amp;
     62<para>Build and install <application>My<acronym>SQL</acronym></application> by
     63running the following commands:</para>
     64
     65<screen><userinput><command>patch -Np1 -i ../mysql-&mysql-version;-nptl-1.patch &amp;&amp;
     66./configure --prefix=/usr --sysconfdir=/etc \
     67    --libexecdir=/usr/sbin --localstatedir=/srv/mysql \
     68    --enable-thread-safe-client --enable-assembler \
     69    --without-readline --without-debug \
     70    --enable-local-infile --without-bench &amp;&amp;
    5971make testdir=/usr/lib/mysql/mysql-test &amp;&amp;
    60 make testdir=/usr/lib/mysql/mysql-test install</command></userinput></screen>
    61 
    62 <para>Packages that depend on <application>MySQL</application> need the shared
    63 libraries available at run-time:</para>
    64 
    65 <screen><userinput><command>cd /usr/lib &amp;&amp;
     72make testdir=/usr/lib/mysql/mysql-test install &amp;&amp;
     73cd /usr/lib &amp;&amp;
    6674ln -sf mysql/libmysqlclient{,_r}.so* .</command></userinput></screen>
     75
     76</sect2>
     77
     78<sect2>
     79<title>Command explanations</title>
     80
     81<para><parameter>--libexecdir=/usr/sbin</parameter>: This switch installs the
     82<command>mysqld</command> daemon in an appropriate location.</para>
     83
     84<para><parameter>--localstatedir=/srv/mysql</parameter>: This switch forces
     85<application>My<acronym>SQL</acronym></application> to use
     86<filename class='directory'>/srv/mysql</filename> for database files and other
     87variable data.</para>
     88
     89<para><parameter>--enable-thread-safe-client</parameter>: This switch compiles a
     90thread-safe <application>My<acronym>SQL</acronym></application> client library.
     91</para>
     92
     93<para><parameter>--enable-assembler</parameter>: This switch allows using
     94assembler versions of some string functions.</para>
     95
     96<para><parameter>--without-readline</parameter>: This switch forces the build
     97to use the system copy of <application>readline</application> instead of the
     98bundled copy.</para>
     99
     100<para><option>--enable-local-infile</option>: This switch enables the
     101LOAD DATA INFILE <acronym>SQL</acronym> statement.</para>
     102
     103<para><option>--without-bench</option>: This switch skips building the
     104benchmark suite.</para>
     105
     106<para><command>make testdir=...</command>: This installs the test suite in
     107<filename class='directory'>/usr/lib/mysql/mysql-test</filename>.
     108<acronym>BLFS</acronym> is currently seeking a method to omit the installation
     109of the test suite altogether.</para>
     110
     111<para><command>ln -sf mysql/libmysqlclient{,_r}.so* .</command>: This commands
     112makes the <application>My<acronym>SQL</acronym></application> shared libraries
     113available to other packages at run-time.</para>
    67114
    68115</sect2>
     
    92139
    93140<screen><userinput><command>mysql_install_db &amp;&amp;
    94 chown -R mysql:mysql /var/lib/mysql</command></userinput></screen>
    95 
    96 <para>Further configuration requires that the mysql server be running:</para>
     141chown -R mysql:mysql /srv/mysql</command></userinput></screen>
     142
     143<para>Further configuration requires that the
     144<application>My<acronym>SQL</acronym></application> server be running:</para>
    97145
    98146<screen><userinput><command>mysqld_safe --user=mysql 2&gt;&amp;1 &gt;/dev/null &amp;</command></userinput></screen>
    99147
    100 <para>A default installation does not setup a password for the
    101 administrator, so use the following command to set one. Replace <replaceable>[new-password]</replaceable>
    102 with your own.</para>
     148<para>A default installation does not setup a password for the administrator,
     149so use the following command to set one. Replace
     150<replaceable>[new-password]</replaceable> with your own.</para>
    103151
    104152<!--
     
    129177
    130178<para>Install the <filename>/etc/rc.d/init.d/mysql</filename>
    131 init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    132                                                                                                                
     179init script included in the <xref linkend="intro-important-bootscripts"/>
     180package.</para>
     181
    133182<screen><userinput><command>make install-mysql</command></userinput></screen>
    134183
     
    144193isamchk</command>, <command>
    145194isamlog</command>, <command>
     195make_win_binary_distribution</command>, <command>
    146196make_win_src_distribution</command>, <command>
    147197msql2mysql</command>, <command>
    148198my_print_defaults</command>, <command>
     199myisam_ftdump</command>, <command>
    149200myisamchk</command>, <command>
    150201myisamlog</command>, <command>
     
    192243libmyisammrg</filename>, <filename class="libraryfile">
    193244libmysqlclient</filename>, <filename class="libraryfile">
     245libmysqlclient_r</filename>, <filename class="libraryfile">
    194246libmystrings</filename>, <filename class="libraryfile">
    195247libmysys</filename>, <filename class="libraryfile">
     
    201253<sect2><title>Description</title>
    202254
    203 <para>A package listing would be several pages long, we suggest
    204 consulting the <application>My<acronym>SQL</acronym></application> documentation for full details, instead.</para>
    205 
    206 <para>Certain <application>My<acronym>SQL</acronym></application>
    207 support programs may require the <application>Perl</application> DBI modules to be installed to function properly.</para>
     255<para>A package listing would be several pages long. Consult the
     256<application>My<acronym>SQL</acronym></application> documentation for full
     257details instead.</para>
     258
     259<para>Certain <application>My<acronym>SQL</acronym></application> support
     260programs may require the <application>Perl</application> DBI modules to be
     261installed to function properly.</para>
    208262
    209263</sect2>
Note: See TracChangeset for help on using the changeset viewer.