Installing Mysql From A Standard Source Distribution - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

use
-felide-constructors
the following:
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
-fno-exceptions -fno-rtti" ./configure \
--prefix=/usr/local/mysql --enable-assembler \
--with-mysqld-ldflags=-all-static
On most systems, this gives you a fast and stable binary.
If you run into problems and need to file a bug report, please use the instructions in
to Report Bugs or

2.17.1. Installing MySQL from a Standard Source Distribution

To install MySQL from source, first configure, build, and install from a source package. Then follow the
same postinstallation setup sequence as for a binary installation.
If you start from a source RPM, use the following command to make a binary RPM that you can install.
If you do not have rpmbuild, use
shell>
rpmbuild --rebuild --clean MySQL-VERSION.src.rpm
The result is one or more binary RPM packages that you install as indicated in
MySQL from RPM Packages on
The sequence for installation from a compressed
for installing from a generic binary distribution that is detailed in
Generic Binaries on Other Unix-Like
installation command sequence looks like this:
# Preconfiguration setup
shell>
groupadd mysql
shell>
useradd -g mysql mysql
# Beginning of source-build specific instructions
shell>
tar zxvf mysql-VERSION.tar.gz
shell>
cd mysql-VERSION
shell>
./configure --prefix=/usr/local/mysql
shell>
make
shell>
make install
# End of source-build specific instructions
# Postinstallation setup
shell>
cd /usr/local/mysql
shell>
chown -R mysql .
shell>
chgrp -R mysql .
shell>
bin/mysql_install_db --user=mysql
shell>
chown -R root .
shell>
chown -R mysql var
# Next command is optional
shell>
cp support-files/my-medium.cnf /etc/my.cnf
shell>
bin/mysqld_safe --user=mysql &
# Next command is optional
shell>
cp support-files/mysql.server /etc/init.d/mysql.server
A more detailed version of the preceding description for installing MySQL from a source distribution
follows:
1. Add a login user and group for

Installing MySQL from a Standard Source Distribution

and
-fno-rtti
Problems".
instead.
rpm
Linux".
Systems". For a MySQL
Note
This procedure does not set up any passwords for MySQL accounts. After
following the procedure, proceed to
Testing", for postinstallation setup and testing.
mysqld
along with -fno-exceptions. When in doubt, do
file source distribution is similar to the process
tar
Section 2.16, "Installing MySQL from
.tar.gz
Section 2.18, "Postinstallation Setup and
to run as:
110
Section 1.7, "How
Section 2.12, "Installing
source distribution, the basic

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents