Installing MySQL

Table of Contents

24. General Installation Issues
Verifying the MD5 Checksum
Signature Checking Using GnuPG
Signature Checking Using RPM
Operating Systems Supported by MySQL
Choosing Which MySQL Distribution to Install
Choosing Which Version of MySQL to Install
Choosing a Distribution Format
How and When Updates Are Released
Release Philosophy---No Known Bugs in Releases
MySQL Binaries Compiled by MySQL AB
How to Get MySQL
Verifying Package Integrity Using MD5 Checksums or GnuPG
Installation Layouts
25. Standard MySQL Installation Using a Binary Distribution
Installing MySQL on Windows
Windows System Requirements
Installing a Windows Binary Distribution
Preparing the Windows MySQL Environment
Selecting a Windows Server
Starting the Server for the First Time
Starting MySQL from the Windows Command Line
Starting MySQL as a Windows Service
Running MySQL Client Programs on Windows
MySQL on Windows Compared to MySQL on Unix
Installing MySQL on Linux
Installing MySQL on Mac OS X
Installing MySQL on NetWare
Installing MySQL on HP-UX
Installing MySQL on Other Unix-like Systems
26. MySQL Installation Using a Source Distribution
Quick Source Installation Overview
Typical configure Options
Installing from the Development Source Tree
Dealing With Problems Compiling MySQL
MIT-pthreads Notes
Installing MySQL from Source on Windows
Building MySQL Using VC++
Creating a Windows Source Package from the Latest Development Source
Compiling MySQL Clients on Windows
27. Post-installation Setup and Testing
Windows Post-installation Procedures
Unix Post-installation Procedures
Problems Running mysql_install_db
Starting and Stopping MySQL Automatically
Starting and Troubleshooting the MySQL Server
28. Upgrading/Downgrading MySQL
Upgrading from Version 4.1 to 5.0
Upgrading from Version 4.0 to 4.1
Upgrading from Version 3.23 to 4.0
Upgrading from Version 3.22 to 3.23
Upgrading from Version 3.21 to 3.22
Upgrading from Version 3.20 to 3.21
Upgrading MySQL under Windows
Upgrading the Grant Tables
Copying MySQL Databases to Another Machine
29. Operating System Specific Notes
Linux Notes
Linux Operating System Notes
Linux Binary Distribution Notes
Linux Source Distribution Notes
Linux Post-installation Notes
Linux x86 Notes
Linux SPARC Notes
Linux Alpha Notes
Linux PowerPC Notes
Linux MIPS Notes
Linux IA-64 Notes
Mac OS X Notes
Mac OS X 10.x (Darwin)
Mac OS X Server 1.2 (Rhapsody)
Solaris Notes
Solaris 2.7/2.8 Notes
Solaris x86 Notes
BSD Notes
FreeBSD Notes
NetBSD Notes
OpenBSD 2.5 Notes
OpenBSD 2.8 Notes
BSD/OS Version 2.x Notes
BSD/OS Version 3.x Notes
BSD/OS Version 4.x Notes
Other Unix Notes
HP-UX Version 10.20 Notes
HP-UX Version 11.x Notes
IBM-AIX notes
SunOS 4 Notes
Alpha-DEC-UNIX Notes (Tru64)
Alpha-DEC-OSF/1 Notes
SGI Irix Notes
SCO Notes
SCO UnixWare Version 7.1.x Notes
OS/2 Notes
BeOS Notes
30. Perl Installation Notes
Installing Perl on Unix
Installing ActiveState Perl on Windows
Problems Using the Perl DBI/DBD Interface

This chapter describes how to obtain and install MySQL:

  1. Determine whether your platform is supported. Please note that not all supported systems are equally good for running MySQL on them. On some it is much more robust and efficient than others. See Which OS for details.

  2. Choose a distribution to install. Several versions of MySQL are available, and most are available in serveral distribution formats. You can choose from pre-packaged distributions containing binary (precompiled) programs or source code. When in doubt, use a binary distribution. We also provide public access to our current source tree, for those who want to see our most recent developments and help us test new code. To determine which version and type of distribution you should use, see Which version.

  3. Download the distribution that you want to install. For a list of sites from which you can obtain MySQL, see Getting MySQL. You can verify the integrity of the distribution using the instructions in Verifying Package Integrity.

  4. Install the distribution. For binary distributions, use the instructions in in Installing binary. For source distributions, use the instructions in Installing source. Additional installation procedures include the following:

    • For post-installation procedures, see Post-installation. These procedures apply whether you install MySQL using a binary or source distribution.

    • If you plan to upgrade an existing version of MySQL to a newer version rather than installing MySQL for the first time, see Upgrade for information about upgrade procedures and about issues that you should consider before upgrading.

    • If you want to run the MySQL benchmark scripts, Perl support for MySQL must be available. See Perl support.

The last part of the chapter provides information on system-specific problems you may run into.