- Install Red Hat OpenJDK 21 or Red Hat OpenJDK 11 by executing one of the following commands:
sudo yum install java-21-openjdk-devel
sudo yum install java-11-openjdk-devel
- Change the default Java provider by executing the following command:
sudo update-alternatives --config java
- In the terminal, change to the directory where you want to download files by executing a command similar to the following:
cd /tmp
Note: Files in the /tmp directory will automatically be deleted when the computer is restarted. - Refer to the following webpage to find and copy the URL for the most recent RPM package for MySQL:
- Download the RPM package for MySQL 8.0 by executing a command similar to the following after replacing the URL you retrieved in the previous step:
curl -OL https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
Note: The built-in repositories from Red Hat Enterprise Linux will install an older version of MySQL that is not compatible with Jamf Pro. - Add the MySQL yum repository by executing the following command:
sudo yum install mysql80-community-release-el7-*noarch.rpm
Note:Due to the ongoing MySQL release cycle, you may need to select the version of MySQL you want to install if the expected version does not get installed. For more information, see the "Selecting a Release Series" section of the following MySQL documentation: https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
- Install MySQL by executing the following command:
sudo yum install mysql-community-server
- Using your preferred text editor, open the /etc/my.cnf file by executing a command similar to the following:
sudo vi /etc/my.cnf
Note:For help with using the vi text editor, see the following webpage: A Beginner's Guide to Editing Text Files With Vi
- Configure MySQL for Jamf Pro by ensuring the
default-authentication-plugin
setting appears within the[mysqld]
section of the /etc/my.cnf file and that it is uncommented:[mysqld] default-authentication-plugin=mysql_native_password
- Start MySQL by executing the following command:
sudo systemctl start mysqld.service
- Enable MySQL by executing the following command:
sudo systemctl enable mysqld.service
- Set the root user password by doing the following:
- Find the temporary root password generated during MySQL installation by executing the following command:
sudo grep 'temporary password' /var/log/mysqld.log
- Connect to the
mysql>
prompt by executing the following command:mysql -u root -p
- When prompted, enter the password returned by the previous command.
- At the
mysql>
prompt, set the root password by executing a command similar to the following:ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
Replace MyNewPass4! with your new password.Note:Default password requirements require a password containing 8 or more characters and at least one lowercase character, one uppercase character, one number, and one symbol.
- Exit the prompt by executing the following command:
exit
- Connect to the
mysql>
prompt again by executing the following command:mysql -u root -p
- When prompted, enter the password you set previously in the
ALTER USER
command to verify the new root user credentials are correct.Themysql>
prompt should appear. - Exit the prompt by executing the following command:
exit
- Find the temporary root password generated during MySQL installation by executing the following command:
Some of the default settings for MySQL 8.0 are not compatible with Jamf Pro. See make the required changes, see the Configuring MySQL 8.0 for Jamf Pro article.
Post a Comment