glfs/content/databases/mysql/mysql-inst.xml
Jesse Tie-Ten-Quee 7d036ae7ad Upgraded mysql to 3.23.52. Some description fixes and changing the mysql db
location to better reflect the FHS.


git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@157 af4574ff-66df-0310-9fd7-8a98e5e911e0
2002-08-27 10:38:20 +00:00

24 lines
823 B
XML

<sect2>
<title>Installation of mysql</title>
<para>For security reasons, running the server as an unpriviledged user and group is strongly encouraged:</para>
<screen><userinput>groupadd mysql &amp;&amp;
useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql</userinput></screen>
<para>Build and install mysql by running the following commands:</para>
<screen><userinput>cp configure configure.old &amp;&amp;
sed -e "s%mysql-test/Makefile%%" -e "s% mysql-test%%" configure.old &gt; configure &amp;&amp;
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var/lib/mysql \
--enable-thread-safe-client \
--without-debug \
--without-bench &amp;&amp;
make &amp;&amp;
make install</userinput></screen>
</sect2>