The Database User Password Authentication Plug-In is Not Properly Configured

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

Starting with MySQL 8.0, the MySQL database requires an upgraded default user password authentication plug-in to allow access. If this is not configured during installation, the connection will fail. Follow these steps to resolve this issue:

Linux

  1. Log in to MySQL as the "root" user by executing:
    $mysql -u root -h localhost -p
  2. Execute a command similar to the following:
    alter user 'jamfsoftware'@'localhost' identified with mysql_native_password by 'jamfsw03';
    Note:

    Replace 'jamfsoftware'@'localhost' and 'jamfsw03' in the above command with the Jamf Pro database user credentials and location. These should match the credentials and location contained in the DataBase.xml file on the Jamf Pro server.

  3. Stop the MySQL server.

  4. Open the my.cnf file.

  5. Add the following entry:
    [mysqld] 
    default-authentication-plugin=mysql_native_password
  6. Restart the MySQL server.

  7. Restart the Jamf Pro server.

  8. On the Jamf Pro Server, reattempt the connection to the database.

Windows

  1. Log in to MySQL as the "root" user by executing:
    mysql.exe -h localhost --user=root -p
  2. Execute a command similar to the following:
    alter user 'jamfsoftware'@'localhost' identified with mysql_native_password by 'jamfsw03';
    Note:

    Replace 'jamfsoftware'@'localhost' and 'jamfsw03' in the above command with the Jamf Pro database user credentials and location. These should match the credentials and location contained in the DataBase.xml file on the Jamf Pro server.

  3. Stop the MySQL server.

  4. Open the my.ini file in a text editor other than Notepad.
    Note:

    The my.ini file can be located at C:\ProgramData\MySQL Server 8.x\my.ini.

  5. Add the following entry:
    [mysqld]
    default-authentication-plugin=mysql_native_password
  6. Restart the MySQL server.

  7. Restart the Jamf Pro server.

  8. On the Jamf Pro server, reattempt the connection to the database.