Installing MySQL from a Standard Source Distribution
110
use
-felide-constructors
and
-fno-rtti
along with
-fno-exceptions
. When in doubt, do
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
Section 1.7, “How
to Report Bugs or Problems”
.
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
rpm
instead.
shell>
rpmbuild --rebuild --clean MySQL-VERSION.src.rpm
The result is one or more binary RPM packages that you install as indicated in
Section 2.12, “Installing
MySQL from RPM Packages on Linux”
.
The sequence for installation from a compressed
tar
file source distribution is similar to the process
for installing from a generic binary distribution that is detailed in
Section 2.16, “Installing MySQL from
Generic Binaries on Other Unix-Like Systems”
. For a MySQL
.tar.gz
source distribution, the basic
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
Note
This procedure does not set up any passwords for MySQL accounts. After
following the procedure, proceed to
Section 2.18, “Postinstallation Setup and
Testing”
, for postinstallation setup and testing.
A more detailed version of the preceding description for installing MySQL from a source distribution
follows:
1. Add a login user and group for
mysqld
to run as:
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...