glfs/content/databases/mysql/mysql-inst.xml
Igor Živković 52701a69d2 changed how mysql libs and mplayer fonts are symlinked, suggested by Nico R.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1998 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-04-16 13:22:16 +00:00

26 lines
1.1 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:</para>
<screen><userinput><command>cd /usr/lib &amp;&amp;
ln -sf mysql/libmysqlclient{,_r}.so* .</command></userinput></screen>
</sect2>