mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-13 07:29:10 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1865 af4574ff-66df-0310-9fd7-8a98e5e911e0
32 lines
1.4 KiB
XML
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 &&
|
|
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. Move these libraries to <filename>/usr/lib</filename>.</para>
|
|
|
|
<screen><userinput><command>mv /usr/lib/mysql/libmysqlclient{,_r}.so* /usr/lib &&
|
|
ln -sf ../libmysqlclient.so /usr/lib/mysql/libmysqlclient.so &&
|
|
ln -sf ../libmysqlclient_r.so /usr/lib/mysql/libmysqlclient_r.so</command></userinput></screen>
|
|
|
|
</sect2>
|