2.10.2 Starting the Server ....................................................................................................... 254 2.10.3 Testing the Server ....................................................................................................... 256 2.10.4 Securing the Initial MySQL Account .............................................................................. 258 2.10.5 Starting and Stopping MySQL Automatically .................................................................. 260 2.11 Upgrading MySQL .................................................................................................................. 261 2.11.1 Before You Begin ......................................................................................................... 262 2.11.2 Upgrade Paths ............................................................................................................. 263 2.11.3 What the MySQL Upgrade Process Upgrades ............................................................... 263 2.11.4 Changes in MySQL 8.0 ................................................................................................ 267 2.11.5 Preparing Your Installation for Upgrade ......................................................................... 283 2.11.6 Upgrading MySQL Binary or Package-based Installations on Unix/Linux .......................... 286 2.11.7 Upgrading MySQL with the MySQL Yum Repository ...................................................... 291 2.11.8 Upgrading MySQL with the MySQL APT Repository ...................................................... 293 2.11.9 Upgrading MySQL with the MySQL SLES Repository .................................................... 293 2.11.10 Upgrading MySQL on Windows .................................................................................. 293 2.11.11 Upgrading a Docker Installation of MySQL .................................................................. 295 2.11.12 Upgrade Troubleshooting ............................................................................................ 295 2.11.13 Rebuilding or Repairing Tables or Indexes .................................................................. 296 2.11.14 Copying MySQL Databases to Another Machine .......................................................... 297 2.12 Downgrading MySQL .............................................................................................................. 298 2.13 Perl Installation Notes ............................................................................................................. 298 2.13.1 Installing Perl on Unix .................................................................................................. 299 2.13.2 Installing ActiveState Perl on Windows .......................................................................... 300 2.13.3 Problems Using the Perl DBI/DBD Interface .................................................................. 300 This chapter describes how to obtain and install MySQL. A summary of the procedure follows and later sections provide the details. If you plan to upgrade an existing version of MySQL to a newer version rather than install MySQL for the first time, see Section 2.11, “Upgrading MySQL” , for information about upgrade procedures and about issues that you should consider before upgrading. If you are interested in migrating to MySQL from another database system, see Section A.8, “MySQL 8.0 FAQ: Migration” , which contains answers to some common questions concerning migration issues. Installation of MySQL generally follows the steps outlined here: Please note that not all platforms are equally suitable for running MySQL, and that not all platforms on which MySQL is known to run are officially supported by Oracle Corporation. For information about those platforms that are officially supported, see https://www.mysql.com/support/supportedplatforms/ database.html on the MySQL website. Several versions of MySQL are available, and most are available in several distribution formats. You can choose from pre-packaged distributions containing binary (precompiled) programs or source code. When in doubt, use a binary distribution. Oracle also provides access to the MySQL source code for those who want to see recent developments and test new code. To determine which version and type of distribution you should use, see Section 2.1.2, “Which MySQL Version and Distribution to Install” . For instructions, see Section 2.1.3, “How to Get MySQL” . To verify the integrity of the distribution, use the instructions in Section 2.1.4, “Verifying Package Integrity Using MD5 Checksums or GnuPG” . 94 1. Determine whether MySQL runs and is supported on your platform. 2. Choose which distribution to install. 3. Download the distribution that you want to install.