<div id="docs-body">
 <div class="chapter">
  <div class="titlepage">
   <div>
    <div>
     <h1 class="title">
      <a name="upgrading">
      </a>
      Chapter 3 Upgrading MySQL
     </h1>
    </div>
   </div>
  </div>
  <div class="toc">
   <p>
    <b>
     Table of Contents
    </b>
   </p>
   <dl class="toc">
    <dt>
     <span class="section">
      <a href="upgrade-before-you-begin.html">
       3.1 Before You Begin
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrade-paths.html">
       3.2 Upgrade Paths
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrade-best-practices.html">
       3.3 Upgrade Best Practices
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrading-what-is-upgraded.html">
       3.4 What the MySQL Upgrade Process Upgrades
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrading-from-previous-series.html">
       3.5 Changes in MySQL 8.4
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrade-prerequisites.html">
       3.6 Preparing Your Installation for Upgrade
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrade-binary-package.html">
       3.7 Upgrading MySQL Binary or Package-based Installations on Unix/Linux
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="updating-yum-repo.html">
       3.8 Upgrading MySQL with the MySQL Yum Repository
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="updating-apt-repo.html">
       3.9 Upgrading MySQL with the MySQL APT Repository
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="updating-sles-repo.html">
       3.10 Upgrading MySQL with the MySQL SLES Repository
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="windows-upgrading.html">
       3.11 Upgrading MySQL on Windows
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrade-docker-mysql.html">
       3.12 Upgrading a Docker Installation of MySQL
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="upgrade-troubleshooting.html">
       3.13 Upgrade Troubleshooting
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="rebuilding-tables.html">
       3.14 Rebuilding or Repairing Tables or Indexes
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="copying-databases.html">
       3.15 Copying MySQL Databases to Another Machine
      </a>
     </span>
    </dt>
   </dl>
  </div>
  <a class="indexterm" name="idm46045326421536">
  </a>
  <p>
   This chapter describes the steps to upgrade a MySQL installation.
  </p>
  <p>
   Upgrading is a common procedure, as you pick up bug fixes within the
    same MySQL release series or significant features between major
    MySQL releases. You perform this procedure first on some test
    systems to make sure everything works smoothly, and then on the
    production systems.
  </p>
  <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Note
   </div>
   <p>
    In the following discussion, MySQL commands that must be run using
      a MySQL account with administrative privileges include
    <code class="option">
     -u
     <code class="literal">
      root
     </code>
    </code>
    on the command line to specify
      the MySQL
    <code class="literal">
     root
    </code>
    user. Commands that require a
      password for
    <code class="literal">
     root
    </code>
    also include a
    <code class="option">
     -p
    </code>
    option. Because
    <code class="option">
     -p
    </code>
    is
      followed by no option value, such commands prompt for the
      password. Type the password when prompted and press Enter.
   </p>
   <p>
    SQL statements can be executed using the
    <a class="link" href="mysql.html" title="6.5.1 mysql — The MySQL Command-Line Client">
     <span class="command">
      <strong>
       mysql
      </strong>
     </span>
    </a>
    command-line client (connect as
    <code class="literal">
     root
    </code>
    to ensure
      that you have the necessary privileges).
   </p>
  </div>
 </div>
 <br/>
</div>
