<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="validate-password-installation">
      </a>
      8.4.3.1 Password Validation Component Installation and Uninstallation
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045241757456">
  </a>
  <a class="indexterm" name="idm46045241756000">
  </a>
  <a class="indexterm" name="idm46045241754496">
  </a>
  <a class="indexterm" name="idm46045241753008">
  </a>
  <p>
   This section describes how to install and uninstall the
   <code class="literal">
    validate_password
   </code>
   password-validation
        component. For general information about installing and
        uninstalling components, see
   <a class="xref" href="components.html" title="7.5 MySQL Components">
    Section 7.5, “MySQL Components”
   </a>
   .
  </p>
  <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Note
   </div>
   <p>
    If you install MySQL 8.4 using the
    <a class="ulink" href="https://dev.mysql.com/downloads/repo/yum/" target="_top">
     MySQL Yum
          repository
    </a>
    ,
    <a class="ulink" href="https://dev.mysql.com/downloads/repo/suse/" target="_top">
     MySQL SLES
          Repository
    </a>
    , or
    <a class="link" href="linux-installation-rpm.html" title="2.5.4 Installing MySQL on Linux Using RPM Packages from Oracle">
     RPM packages provided
          by Oracle
    </a>
    , the
    <code class="literal">
     validate_password
    </code>
    component is enabled by default after you start your MySQL
          Server for the first time.
   </p>
   <p>
    Upgrades to MySQL 8.4 from 8.3
          using Yum or RPM packages leave the
    <code class="literal">
     validate_password
    </code>
    plugin in place. To make
          the transition from the
    <code class="literal">
     validate_password
    </code>
    plugin to the
    <code class="literal">
     validate_password
    </code>
    component,
          see
    <a class="xref" href="validate-password-transitioning.html" title="8.4.3.3 Transitioning to the Password Validation Component">
     Section 8.4.3.3, “Transitioning to the Password Validation Component”
    </a>
    .
   </p>
  </div>
  <p>
   To be usable by the server, the component library file must be
        located in the MySQL plugin directory (the directory named by
        the
   <a class="link" href="server-system-variables.html#sysvar_plugin_dir">
    <code class="literal">
     plugin_dir
    </code>
   </a>
   system
        variable). If necessary, configure the plugin directory location
        by setting the value of
   <a class="link" href="server-system-variables.html#sysvar_plugin_dir">
    <code class="literal">
     plugin_dir
    </code>
   </a>
   at server startup.
  </p>
  <p>
   To install the
   <code class="literal">
    validate_password
   </code>
   component,
        use this statement:
  </p>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-sql"><div class="docs-select-all right" id="sa54012447"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token keyword">INSTALL</span> <span class="token keyword">COMPONENT</span> <span class="token string">'file://component_validate_password'</span><span class="token punctuation">;</span></code></pre>
  </div>
  <p>
   Component installation is a one-time operation that need not be
        done per server startup.
   <a class="link" href="install-component.html" title="15.7.4.3 INSTALL COMPONENT Statement">
    <code class="literal">
     INSTALL
        COMPONENT
    </code>
   </a>
   loads the component, and also registers it
        in the
   <code class="literal">
    mysql.component
   </code>
   system table to cause
        it to be loaded during subsequent server startups.
  </p>
  <p>
   To uninstall the
   <code class="literal">
    validate_password
   </code>
   component,
        use this statement:
  </p>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-sql"><div class="docs-select-all right" id="sa65214366"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token keyword">UNINSTALL</span> <span class="token keyword">COMPONENT</span> <span class="token string">'file://component_validate_password'</span><span class="token punctuation">;</span></code></pre>
  </div>
  <p>
   <a class="link" href="uninstall-component.html" title="15.7.4.5 UNINSTALL COMPONENT Statement">
    <code class="literal">
     UNINSTALL COMPONENT
    </code>
   </a>
   unloads the
        component, and unregisters it from the
   <code class="literal">
    mysql.component
   </code>
   system table to cause it not
        to be loaded during subsequent server startups.
  </p>
 </div>
 <br/>
</div>
