Installing MySQL from Source
109
Note
The accounts that are listed in the MySQL grant tables initially have no
passwords. After starting the server, you should set up passwords for them
using the instructions in
Section 2.18, “Postinstallation Setup and Testing”
.
2.17. Installing MySQL from Source
Building MySQL from the source code enables you to customize build parameters, compiler
optimizations, and installation location. For a list of systems on which MySQL is known to run, see
Section 2.4.2, “Operating Systems Supported by MySQL Community Server”
.
Before you proceed with an installation from source, check whether we produce a precompiled binary
distribution for your platform and whether it works for you. We put a great deal of effort into ensuring
that our binaries are built with the best possible options for optimal performance. Instructions for
installing binary distributions are available in
Section 2.16, “Installing MySQL from Generic Binaries on
Other Unix-Like Systems”
.
To obtain a source distribution for MySQL, see
Section 2.5, “How to Get MySQL”
. MySQL
source distributions are available as compressed
tar
files, Zip archives, or RPM packages.
Distribution files have names of the form
mysql-VERSION.tar.gz
,
mysql-VERSION.zip
, or
mysql-VERSION.rpm
, where
VERSION
is a number like
5.0.96
.
To perform a MySQL installation using the source code:
• To build MySQL from source on Unix-like systems, including Linux, commercial Unix, BSD, Mac
OS X and others using a
.tar.gz
or RPM-based source code distribution, see
Section 2.17.1,
“Installing MySQL from a Standard Source Distribution”
.
• To build MySQL from source on Windows (Windows XP or newer required), see
Section 2.10.8,
“Installing MySQL from Source on Windows”
.
• For information on building from one of our development trees, see
Section 2.17.2, “Installing MySQL
from a Development Source Tree”
.
• For information on using the
configure
command to specify the source build parameters, including
links to platform specific parameters that you might need, see
Section 2.17.3, “MySQL Source-
Configuration Options”
.
To install MySQL from source, your system must have the following tools:
• GNU
gunzip
to uncompress the distribution and a reasonable
tar
to unpack it (if you use a
.tar.gz
distribution), or
WinZip
or another tool that can read
.zip
files (if you use a
.zip
distribution).
GNU
tar
is known to work. The standard
tar
provided with some operating systems is not able to
unpack the long file names in the MySQL distribution. You should download and install GNU
tar
, or
if available, use a preinstalled version of GNU tar. Usually this is available as
gnutar
,
gtar
, or as
tar
within a GNU or Free Software directory, such as
/usr/sfw/bin
or
/usr/local/bin
. GNU
tar
is available from
http://www.gnu.org/software/tar/
.
• A working ANSI C++ compiler. GCC 3.4.6 or later, Sun Studio 10 or later, Visual Studio 2005 or later,
and many current vendor-supplied compilers are known to work.
• A good
make
program. Although some platforms come with their own
make
implementations, it is
highly recommended that you use GNU
make
3.75 or newer. It may already be available on your
system as
gmake
. GNU
make
is available from
http://www.gnu.org/software/make/
.
•
libtool
1.5, available from
http://www.gnu.org/software/libtool/
. 1.5.24 or later is recommended.
If you are using a version of
gcc
recent enough to understand the
-fno-exceptions
option, it is very
important that you use this option. Otherwise, you may compile a binary that crashes randomly. Also
Содержание 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 ...