MySQL Installation Guide

Abstract

This is the MySQL Installation Guide from the MySQL 5.1 Reference Manual.

For legal information, see the Legal Notices.

For help with using MySQL, please visit either the MySQL Forums or MySQL Mailing Lists, where you can discuss your issues with other MySQL users.

For additional documentation on MySQL products, including translations of the documentation into other languages, and downloadable versions in variety of formats, including HTML and PDF formats, see the MySQL Documentation Library.

Licensing information—MySQL 5.1.  This product may include third-party software, used under license. If you are using a Commercial release of MySQL 5.1, see this document for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. If you are using a Community release of MySQL 5.1, see this document for licensing information, including licensing information relating to third-party software that may be included in this Community release.

Licensing information—MySQL Cluster.  This product may include third-party software, used under license. If you are using a Commercial release of MySQL Cluster, see this document for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. If you are using a Community release of MySQL Cluster, see this document for licensing information, including licensing information relating to third-party software that may be included in this Community release.

Document generated on: 2016-05-31 (revision: 47872)


Table of Contents

Preface and Legal Notices
1 Installing and Upgrading MySQL
2 General Installation Guidance
2.1 Choosing Which MySQL Distribution to Install
2.1.1 Choosing Which Version of MySQL to Install
2.1.2 Choosing a Distribution Format
2.1.3 How and When Updates Are Released
2.2 How to Get MySQL
2.3 Verifying Package Integrity Using MD5 Checksums or GnuPG
2.3.1 Verifying the MD5 Checksum
2.3.2 Signature Checking Using GnuPG
2.3.3 Signature Checking Using Gpg4win for Windows
2.3.4 Signature Checking Using RPM
2.4 Installation Layouts
2.5 Compiler-Specific Build Characteristics
3 Installing MySQL on Unix/Linux Using Generic Binaries
4 Installing MySQL from Source
4.1 MySQL Layout for Source Installation
4.2 Installing MySQL Using a Standard Source Distribution
4.3 Installing MySQL Using a Development Source Tree
4.4 MySQL Source-Configuration Options
4.5 Dealing with Problems Compiling MySQL
4.6 Compiling and Linking an Optimized mysqld Server
4.7 Installing MySQL from Source on Windows
4.8 Notes on Installing MySQL on Solaris from Source
4.9 Notes on Installing MySQL on AIX from Source
4.10 Notes on Installing MySQL on HP-UX from Source
5 Installing MySQL on Microsoft Windows
5.1 MySQL Installation Layout on Microsoft Windows
5.2 Choosing the Installation Package for Microsoft Windows
5.3 MySQL Notifier
5.3.1 MySQL Notifier Usage
5.3.2 Remote monitoring set up and installation instructions
5.4 Installing MySQL on Microsoft Windows Using an MSI Package
5.4.1 Using the MySQL Installation Wizard for Microsoft Windows
5.4.2 Automating MySQL Installation on Microsoft Windows Using the MSI Package
5.4.3 Removing MySQL When Installed from the MSI Package
5.5 Using the MySQL Server Instance Config Wizard
5.5.1 Starting the MySQL Server Instance Config Wizard
5.5.2 MySQL Server Instance Config Wizard: Choosing a Maintenance Option
5.5.3 MySQL Server Instance Config Wizard: Choosing a Configuration Type
5.5.4 MySQL Server Instance Config Wizard: The Server Type Dialog
5.5.5 MySQL Server Instance Config Wizard: The Database Usage Dialog
5.5.6 MySQL Server Instance Config Wizard: The InnoDB Tablespace Dialog
5.5.7 MySQL Server Instance Config Wizard: The Concurrent Connections Dialog
5.5.8 MySQL Server Instance Config Wizard: The Networking and Strict Mode Options Dialog
5.5.9 MySQL Server Instance Config Wizard: The Character Set Dialog
5.5.10 MySQL Server Instance Config Wizard: The Service Options Dialog
5.5.11 MySQL Server Instance Config Wizard: The Security Options Dialog
5.5.12 MySQL Server Instance Config Wizard: The Confirmation Dialog
5.5.13 MySQL Server Instance Config Wizard: Creating an Instance from the Command Line
5.6 Installing MySQL on Microsoft Windows Using a noinstall Zip Archive
5.6.1 Extracting the Install Archive
5.6.2 Creating an Option File
5.6.3 Selecting a MySQL Server Type
5.6.4 Starting MySQL Server on Microsoft Windows for the First Time
5.6.5 Starting MySQL Server from the Windows Command Line
5.6.6 Customizing the PATH for MySQL Tools
5.6.7 Starting MySQL Server as a Microsoft Windows Service
5.6.8 Testing The MySQL Server Installation on Microsoft Windows
5.7 Troubleshooting a Microsoft Windows MySQL Server Installation
5.8 Windows Postinstallation Procedures
5.9 Upgrading MySQL Server on Microsoft Windows
6 Installing MySQL on OS X
6.1 General Notes on Installing MySQL on OS X
6.2 Installing MySQL on OS X Using Native Packages
6.3 Installing a MySQL Launch Daemon
6.4 Installing the MySQL Startup Item
6.5 Installing and Using the MySQL Preference Pane
6.6 Using the Bundled MySQL on OS X Server
7 Installing MySQL on Linux
7.1 Installing MySQL on Linux Using RPM Packages
7.2 Installing MySQL on Linux Using Native Package Managers
8 Installing MySQL on Solaris and OpenSolaris
8.1 Installing MySQL on Solaris Using a Solaris PKG
8.2 Installing MySQL on OpenSolaris Using IPS
9 Installing MySQL on i5/OS
10 Postinstallation Setup and Testing
10.1 Initializing the Data Directory
10.1.1 Problems Running mysql_install_db
10.2 Starting the Server
10.2.1 Troubleshooting Problems Starting the MySQL Server
10.3 Testing the Server
10.4 Securing the Initial MySQL Accounts
10.5 Starting and Stopping MySQL Automatically
11 Upgrading or Downgrading MySQL
11.1 Upgrading MySQL
11.1.1 Changes Affecting Upgrades to 5.1
11.2 Downgrading MySQL
11.2.1 Changes Affecting Downgrades from MySQL 5.1
11.2.2 Downgrading from MySQL Enterprise Edition to MySQL Community Server
11.3 Checking Whether Tables or Indexes Must Be Rebuilt
11.4 Rebuilding or Repairing Tables or Indexes
11.5 Copying MySQL Databases to Another Machine
12 Environment Variables
13 Perl Installation Notes
13.1 Installing Perl on Unix
13.2 Installing ActiveState Perl on Windows
13.3 Problems Using the Perl DBI/DBD Interface