2.11 Installing MySQL from Source

2.11.1 MySQL Layout for Source Installation
2.11.2 Installing MySQL Using a Standard Source Distribution
2.11.3 Installing MySQL Using a Development Source Tree
2.11.4 MySQL Source-Configuration Options
2.11.5 Dealing with Problems Compiling MySQL
2.11.6 Compiling and Linking an Optimized mysqld Server
2.11.7 Installing MySQL from Source on Windows
2.11.8 Notes on Installing MySQL on Solaris from Source
2.11.9 Notes on Installing MySQL on AIX from Source
2.11.10 Notes on Installing MySQL on HP-UX 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 http://www.mysql.com/support/supportedplatforms/database.html.

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.2, “Installing MySQL on Unix/Linux Using Generic Binaries”.

To obtain a source distribution for MySQL, see Section 2.1.2, “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.1.73.

To perform a MySQL installation using the source code:

To install MySQL from source, the following system requirements must be satisfied:

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”.