Rocky Linux - AtoZ Linux https://atozlinux.com Linux News, Tutorials, Freebies & Many More Fri, 16 Feb 2024 16:19:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 How to Install MySQL On RHEL 9 / Rocky Linux 9 https://atozlinux.com/how-to-install-mysql-on-rhel-9-rocky-linux-9/ https://atozlinux.com/how-to-install-mysql-on-rhel-9-rocky-linux-9/#respond Fri, 16 Feb 2024 16:19:01 +0000 https://atozlinux.com/?p=126203 How to Install MySQL On RHEL 9 / Rocky Linux 9 In this tutorial post, we will explain how to install MySQL database server on RHEL 9 or Rocky Linux 9. How to Install MySQL On RHEL 9 / Rocky Linux 9 Let’s start with the MySQL installation: Install MySQL on RHEL 9 / Rocky […]

The post How to Install MySQL On RHEL 9 / Rocky Linux 9 first appeared on AtoZ Linux.

]]>
How to Install MySQL On RHEL 9 / Rocky Linux 9

In this tutorial post, we will explain how to install MySQL database server on RHEL 9 or Rocky Linux 9.

How to Install MySQL On RHEL 9 / Rocky Linux 9

Let’s start with the MySQL installation:

Install MySQL on RHEL 9 / Rocky Linux 9

MySQL version 8 is available from the Appstream repository on RHEL 9 / Rocky 9. Before installing the MySQL database server, update the system with the following command:

sudo dnf update

Now, after updating your system run the following command to install the mysql-server package.

sudo dnf install mysql-server -y

Once installed, run the following command to check the version installed:

mysql --version

How to Start and Enable MySQL Server

Start systemd service with the following command:

sudo systemctl start mysqld.service

Once you have executed the command, you might want to confirm if the service is running as shown.

sudo systemctl status mysqld.service

Enable the database server to start on boot using the following command:

sudo systemctl enable mysqld

Secure MySQL on RHEL 9 / Rocky Linux 9

MySQL comes with the mysql_secure_installation security script from where you can modify the default options of your database server.

sudo mysql_secure_installation

You can configure the details like passwords.

How to Access MySQL Database Server

To log in to the MySQL server, run the following command as sudo user. The -u option specifies the user logging in and -p option prompts for the password.

sudo mysql -u root -p

Provide the MySQL root user’s password and hit ENTER.

Conclusion

In this post, we have walked you through the installation of MySQL server  on RHEL 9 or Rocky Linux 9. Let us know if you have any other easy and better way to install database server on RHEL and Rocky Linux.

The post How to Install MySQL On RHEL 9 / Rocky Linux 9 first appeared on AtoZ Linux.

]]>
https://atozlinux.com/how-to-install-mysql-on-rhel-9-rocky-linux-9/feed/ 0
How To Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux And Rocky Linux [2024] https://atozlinux.com/apply-updates-automatically-with-dnf-automatic/ https://atozlinux.com/apply-updates-automatically-with-dnf-automatic/#respond Tue, 31 Jan 2023 16:09:27 +0000 https://itsubuntu.com/?p=124458 Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux, And Rocky Linux DNF Automatic tool is used to check and download package updates automatically and regularly. It checks for updates available, and then performs the automatic updates. How To Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux, And Rocky Linux [2024] Install dnf-automatic dnf-automatic is available […]

The post How To Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux And Rocky Linux [2024] first appeared on AtoZ Linux.

]]>
Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux, And Rocky Linux

DNF Automatic tool is used to check and download package updates automatically and regularly. It checks for updates available, and then performs the automatic updates.

How To Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux, And Rocky Linux [2024]

Install dnf-automatic

dnf-automatic is available in the default repositories of RHEL and its derivatives. Run the following command to install the dnf-automatic package:

# dnf install dnf-automatic

Run the following command to verify the installation:

# rpm -qi dnf-automatic

How To Enable DNF Automatic

Modify the /etc/dnf/automatic.conf configuration file:

To select, enable, and start a systemd timer unit that downloads available updates:

# systemctl enable dnf-automatic-download.timer

# systemctl start dnf-automatic-download.timer

To select, enable, and start a systemd timer unit that downloads and installs available updates:

# systemctl enable dnf-automatic-install.timer
# systemctl start dnf-automatic-install.timer

To select, enable, and start a systemd timer unit that reports available updates, use:

# systemctl enable dnf-automatic-notifyonly.timer
# systemctl start dnf-automatic-notifyonly.timer

To select, enable, and start a systemd timer unit that <downloads, downloads and installs, or reports available updates, use:

# systemctl enable dnf-automatic.timer
# systemctl start dnf-automatic.timer

How To Apply Updates Automatically with dnf-automatic

Now run the following command. The following command will enable the timer unit.

sudo systemctl enable --now dnf-automatic.timer

Now the updates are downloaded and installed (if enabled) automatically when they are available.

At last run the following command to verify that the timer is enabled:

# systemctl status <systemd timer unit>

The post How To Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux And Rocky Linux [2024] first appeared on AtoZ Linux.

]]>
https://atozlinux.com/apply-updates-automatically-with-dnf-automatic/feed/ 0