mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-05 16:07:23 +08:00
a4be499f61
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1292 af4574ff-66df-0310-9fd7-8a98e5e911e0
26 lines
989 B
XML
26 lines
989 B
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 &&
|
|
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>cp configure configure.old &&
|
|
sed -e "s%mysql-test/Makefile%%" -e "s% mysql-test%%" configure.old > configure &&
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libexecdir=/usr/sbin \
|
|
--localstatedir=/var/lib/mysql \
|
|
--enable-thread-safe-client \
|
|
--enable-local-infile \
|
|
--without-debug \
|
|
--without-bench &&
|
|
make &&
|
|
make install</command></userinput></screen>
|
|
|
|
</sect2>
|