glfs/content/databases/mysql/mysql-inst.xml
Tushar Teredesai 15f5d9faa7 Moved mysql libs to /usr/lib
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1865 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-03-05 07:09:18 +00:00

32 lines
1.4 KiB
XML

<sect2>
<title>Installation of <application>My<acronym>SQL</acronym></application></title>
<para>For security reasons, running the server as an unprivileged user
and group is strongly encouraged:</para>
<screen><userinput><command>groupadd mysql &amp;&amp;
useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql</command></userinput></screen>
<para>Build and install <application>My<acronym>SQL</acronym></application> by running the following commands:</para>
<screen><userinput><command>./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var/lib/mysql \
--enable-thread-safe-client \
--enable-local-infile \
--enable-assembler \
--without-debug \
--without-bench &amp;&amp;
make testdir=/usr/lib/mysql/mysql-test &amp;&amp;
make testdir=/usr/lib/mysql/mysql-test install</command></userinput></screen>
<para>Packages that depend on <application>MySQL</application> need the shared
libraries available at run-time. Move these libraries to <filename>/usr/lib</filename>.</para>
<screen><userinput><command>mv /usr/lib/mysql/libmysqlclient{,_r}.so* /usr/lib &amp;&amp;
ln -sf ../libmysqlclient.so /usr/lib/mysql/libmysqlclient.so &amp;&amp;
ln -sf ../libmysqlclient_r.so /usr/lib/mysql/libmysqlclient_r.so</command></userinput></screen>
</sect2>