Determine whether MySQL runs and is supported on your platform. Not all platforms are equally suitable for running MySQL, and not all platforms on which MySQL is known to run are officially supported by Oracle Corporation.
Choose which distribution to install. Several versions of MySQL are available, and most are available in multiple distribution formats. You can choose from prepackaged distributions containing binary (precompiled) programs or source code. When in doubt, use a binary distribution. We also provide public access to our current source trees for those who want to see our most recent developments and to help us test new code. To determine which version and type of distribution you should use, see Section 2.4.2, “Choosing Which MySQL Distribution to Install”.
Download the distribution that you want to install. For download instructions, see Section 2.5, “How to Get MySQL”. To verify the integrity of the distribution, use the instructions in Section 2.6, “Verifying Package Integrity Using MD5 Checksums or GnuPG”.
Install the distribution. To install MySQL from a binary distribution, use the instructions in Section 2.9, “Standard MySQL Installation from a Binary Distribution”. To install MySQL from a source distribution or from the current development source tree, use the instructions in Section 2.17, “Installing MySQL from Source”.
If you encounter installation difficulties, see Section 2.20, “Operating System-Specific Notes”, for information on solving problems for particular platforms.
Perform any necessary postinstallation setup. After installing MySQL, read Section 2.18, “Postinstallation Setup and Testing”, which contains important information about making sure the MySQL server is working properly. It also describes how to secure the initial MySQL user accounts, which have no passwords until you assign passwords. The information in this section applies whether you install MySQL using a binary or source distribution.
Perform setup for running benchmarks (optional). If you want to use the MySQL benchmark scripts, Perl support for MySQL must be available. See Section 2.22, “Perl Installation Notes”, for more information.
The sections immediately following this one contain necessary information about choosing, downloading, and verifying your distribution. The instructions in later sections of the chapter describe how to install the distribution that you choose. For binary distributions, see the instructions in Section 2.9, “Standard MySQL Installation from a Binary Distribution”. To build MySQL from source, use the instructions in Section 2.17, “Installing MySQL from Source”.