<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h2 class="title">
      <a name="postinstallation">
      </a>
      2.9 Postinstallation Setup and Testing
     </h2>
    </div>
   </div>
  </div>
  <div class="toc">
   <dl class="toc">
    <dt>
     <span class="section">
      <a href="data-directory-initialization.html">
       2.9.1 Initializing the Data Directory
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="starting-server.html">
       2.9.2 Starting the Server
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="testing-server.html">
       2.9.3 Testing the Server
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="default-privileges.html">
       2.9.4 Securing the Initial MySQL Account
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="automatic-start.html">
       2.9.5 Starting and Stopping MySQL Automatically
      </a>
     </span>
    </dt>
   </dl>
  </div>
  <a class="indexterm" name="idm46045327114784">
  </a>
  <a class="indexterm" name="idm46045327113328">
  </a>
  <a class="indexterm" name="idm46045327111840">
  </a>
  <p>
   This section discusses tasks that you should perform after
    installing MySQL:
  </p>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      If necessary, initialize the data directory and create the MySQL
        grant tables. For some MySQL installation methods, data
        directory initialization may be done for you automatically:
     </p>
     <div class="itemizedlist">
      <ul class="itemizedlist" style="list-style-type: circle; ">
       <li class="listitem">
        <p>
         Windows installation operations performed by the MSI
            installer and MySQL Configurator.
        </p>
       </li>
       <li class="listitem">
        <p>
         Installation on Linux using a server RPM or Debian
            distribution from Oracle.
        </p>
       </li>
       <li class="listitem">
        <p>
         Installation using the native packaging system on many
            platforms, including Debian Linux, Ubuntu Linux, Gentoo
            Linux, and others.
        </p>
       </li>
       <li class="listitem">
        <p>
         Installation on macOS using a DMG distribution.
        </p>
       </li>
      </ul>
     </div>
     <p>
      For other platforms and installation types, you must initialize
        the data directory manually. These include installation from
        generic binary and source distributions on Unix and Unix-like
        system, and installation from a ZIP Archive package on Windows.
        For instructions, see
      <a class="xref" href="data-directory-initialization.html" title="2.9.1 Initializing the Data Directory">
       Section 2.9.1, “Initializing the Data Directory”
      </a>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      Start the server and make sure that it can be accessed. For
        instructions, see
      <a class="xref" href="starting-server.html" title="2.9.2 Starting the Server">
       Section 2.9.2, “Starting the Server”
      </a>
      , and
      <a class="xref" href="testing-server.html" title="2.9.3 Testing the Server">
       Section 2.9.3, “Testing the Server”
      </a>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      Assign passwords to the initial
      <code class="literal">
       root
      </code>
      account
        in the grant tables, if that was not already done during data
        directory initialization. Passwords prevent unauthorized access
        to the MySQL server. For instructions, see
      <a class="xref" href="default-privileges.html" title="2.9.4 Securing the Initial MySQL Account">
       Section 2.9.4, “Securing the Initial MySQL Account”
      </a>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      Optionally, arrange for the server to start and stop
        automatically when your system starts and stops. For
        instructions, see
      <a class="xref" href="automatic-start.html" title="2.9.5 Starting and Stopping MySQL Automatically">
       Section 2.9.5, “Starting and Stopping MySQL Automatically”
      </a>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      Optionally, populate time zone tables to enable recognition of
        named time zones. For instructions, see
      <a class="xref" href="time-zone-support.html" title="7.1.15 MySQL Server Time Zone Support">
       Section 7.1.15, “MySQL Server Time Zone Support”
      </a>
      .
     </p>
    </li>
   </ul>
  </div>
  <p>
   When you are ready to create additional user accounts, you can find
    information on the MySQL access control system and account
    management in
   <a class="xref" href="access-control.html" title="8.2 Access Control and Account Management">
    Section 8.2, “Access Control and Account Management”
   </a>
   .
  </p>
 </div>
 <br/>
</div>
