mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-19 12:55:35 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1998 af4574ff-66df-0310-9fd7-8a98e5e911e0
26 lines
1.1 KiB
XML
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 &&
|
|
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 &&
|
|
make testdir=/usr/lib/mysql/mysql-test &&
|
|
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 &&
|
|
ln -sf mysql/libmysqlclient{,_r}.so* .</command></userinput></screen>
|
|
|
|
</sect2>
|