Mysql Installation Guide Abstract
Total Page:16
File Type:pdf, Size:1020Kb
MySQL Installation Guide Abstract This is the MySQL Installation Guide from the MySQL 5.5 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.5. This product may include third-party software, used under license. If you are using a Commercial release of MySQL 5.5, 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.5, 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 NDB 7.2. This product may include third-party software, used under license. If you are using a Commercial release of MySQL Cluster NDB 7.2, 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 NDB 7.2, 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: 2017-08-17 (revision: 53505) Table of Contents Preface and Legal Notices .................................................................................................................. v 1 Installing and Upgrading MySQL ...................................................................................................... 1 2 General Installation Guidance .......................................................................................................... 3 2.1 Which MySQL Version and Distribution to Install .................................................................... 3 2.2 How to Get MySQL .............................................................................................................. 4 2.3 Verifying Package Integrity Using MD5 Checksums or GnuPG ................................................ 5 2.3.1 Verifying the MD5 Checksum ..................................................................................... 5 2.3.2 Signature Checking Using GnuPG .............................................................................. 5 2.3.3 Signature Checking Using Gpg4win for Windows ...................................................... 13 2.3.4 Signature Checking Using RPM ............................................................................... 18 2.4 Installation Layouts ............................................................................................................. 19 2.5 Compiler-Specific Build Characteristics ................................................................................ 19 3 Installing MySQL on Unix/Linux Using Generic Binaries .................................................................. 21 4 Installing MySQL from Source ....................................................................................................... 25 4.1 MySQL Layout for Source Installation .................................................................................. 27 4.2 Installing MySQL Using a Standard Source Distribution ........................................................ 27 4.3 Installing MySQL Using a Development Source Tree ............................................................ 31 4.4 MySQL Source-Configuration Options ................................................................................. 33 4.5 Dealing with Problems Compiling MySQL ............................................................................ 46 4.6 MySQL Configuration and Third-Party Tools ........................................................................ 48 5 Installing MySQL on Microsoft Windows ......................................................................................... 49 5.1 MySQL Installation Layout on Microsoft Windows ................................................................. 52 5.2 Choosing An Installation Package ....................................................................................... 53 5.3 MySQL Installer for Windows .............................................................................................. 54 5.3.1 MySQL Installer Initial Setup .................................................................................... 55 5.3.2 Installation Workflow ................................................................................................ 59 5.3.3 MySQL Installer Product Catalog and Dashboard ...................................................... 66 5.3.4 MySQLInstallerConsole Reference ............................................................................ 69 5.4 MySQL Notifier ................................................................................................................... 73 5.4.1 MySQL Notifier Usage ............................................................................................. 73 5.4.2 Setting Up Remote Monitoring in MySQL Notifier ...................................................... 80 5.5 Installing MySQL on Microsoft Windows Using an MSI Package ........................................... 85 5.5.1 Using the MySQL Installation Wizard ........................................................................ 87 5.5.2 Automating MySQL Installation on Microsoft Windows Using the MSI Package ............ 90 5.5.3 Removing MySQL When Installed from the MSI Package .......................................... 91 5.6 MySQL Server Instance Configuration Wizard ...................................................................... 92 5.6.1 Starting the MySQL Server Instance Configuration Wizard ......................................... 92 5.6.2 Choosing a Maintenance Option ............................................................................... 93 5.6.3 Choosing a Configuration Type ................................................................................ 93 5.6.4 The Server Type Dialog ........................................................................................... 94 5.6.5 The Database Usage Dialog .................................................................................... 96 5.6.6 The InnoDB Tablespace Dialog ................................................................................ 97 5.6.7 The Concurrent Connections Dialog ......................................................................... 98 5.6.8 The Networking and Strict Mode Options Dialog ........................................................ 99 5.6.9 The Character Set Dialog ....................................................................................... 100 5.6.10 The Service Options Dialog .................................................................................. 100 5.6.11 The Security Options Dialog ................................................................................. 101 5.6.12 The Confirmation Dialog ....................................................................................... 103 5.6.13 MySQL Server Instance Config Wizard: Creating an Instance from the Command Line ................................................................................................................................ 104 5.7 Installing MySQL on Microsoft Windows Using a noinstall Zip Archive .................................. 107 iii MySQL Installation Guide 5.7.1 Extracting the Install Archive .................................................................................. 107 5.7.2 Creating an Option File .......................................................................................... 108 5.7.3 Selecting a MySQL Server Type ............................................................................. 109 5.7.4 Starting the Server for the First Time ...................................................................... 109 5.7.5 Starting MySQL from the Windows Command Line .................................................. 111 5.7.6 Customizing the PATH for MySQL Tools ................................................................. 111 5.7.7 Starting MySQL as a Windows Service ................................................................... 112 5.7.8 Testing The MySQL Installation .............................................................................. 115 5.8 Troubleshooting a Microsoft Windows MySQL Server Installation ........................................ 116 5.9 Windows Postinstallation Procedures ................................................................................. 117 5.10 Upgrading MySQL on Windows ....................................................................................... 119 6 Installing MySQL on OS X ........................................................................................................... 123 6.1 General Notes on Installing MySQL on OS X ..................................................................... 123 6.2 Installing MySQL on OS X Using Native Packages ............................................................. 124 6.3 Installing a MySQL Launch Daemon