2002-08-16 09:24:08 +08:00
|
|
|
<sect2>
|
2003-09-29 06:10:55 +08:00
|
|
|
<title>Installation of <application>My<acronym>SQL</acronym></application></title>
|
2002-08-16 09:24:08 +08:00
|
|
|
|
2003-10-04 00:43:11 +08:00
|
|
|
<para>For security reasons, running the server as an unprivileged user
|
2003-01-31 12:53:23 +08:00
|
|
|
and group is strongly encouraged:</para>
|
2002-08-16 09:24:08 +08:00
|
|
|
|
2003-09-07 10:28:10 +08:00
|
|
|
<screen><userinput><command>groupadd mysql &&
|
|
|
|
useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql</command></userinput></screen>
|
2002-08-16 09:24:08 +08:00
|
|
|
|
2003-09-29 06:10:55 +08:00
|
|
|
<para>Build and install <application>My<acronym>SQL</acronym></application> by running the following commands:</para>
|
2002-08-16 09:24:08 +08:00
|
|
|
|
2003-09-07 10:28:10 +08:00
|
|
|
<screen><userinput><command>cp configure configure.old &&
|
2002-08-16 09:24:08 +08:00
|
|
|
sed -e "s%mysql-test/Makefile%%" -e "s% mysql-test%%" configure.old > configure &&
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/sbin \
|
2002-08-27 18:38:20 +08:00
|
|
|
--localstatedir=/var/lib/mysql \
|
2002-08-16 09:24:08 +08:00
|
|
|
--enable-thread-safe-client \
|
2003-09-07 10:28:10 +08:00
|
|
|
--enable-local-infile \
|
2002-08-16 09:24:08 +08:00
|
|
|
--without-debug \
|
|
|
|
--without-bench &&
|
|
|
|
make &&
|
2003-09-07 10:28:10 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-08-16 09:24:08 +08:00
|
|
|
|
|
|
|
</sect2>
|