top of page

MariaDB can be installed by enabling the module or using the repository; both examples are in this guide.

Oct 13, 2024

2 min read

0

77

0

MariaDB can be installed by enabling the module or using the repository; both examples are in this guide.

 

Installing MariaDB 10.11 on Red Hat by Enabling the Module

  1. Enable the MariaDB Module:

    • List available MariaDB modules:

  2. sudo dnf module list mariadb

    • Enable the MariaDB 10.11 module:

  3. sudo dnf module enable mariadb:10.11

  4. Install MariaDB:

    • Install the MariaDB server and client:

  5. sudo dnf install mariadb-server mariadb

  6. Start and Enable MariaDB:

    • Start the MariaDB service:

  7. sudo systemctl start mariadb

    • Enable MariaDB to start on boot:

  8. sudo systemctl enable mariadb

  9. Secure the Installation:

    • Run the security script:

  10. sudo mysql_secure_installation

    • Follow the prompts to set the root password and secure the installation.

  11. Verify the Installation:

    • Check the MariaDB version:

  12. mysql -V

This method ensures that you are using the module system to manage MariaDB 10.11 on your Red Hat system.


###############################################################


or method two

 

Installing MariaDB 10.11 on Red Hat

  1. Update Your System:

    • Ensure your system is up to date:

  2. sudo dnf update

  3. Enable the MariaDB Repository:

    • Create a repository file for MariaDB:

  4. sudo tee /etc/yum.repos.d/MariaDB.repo <<EOF

  5. [mariadb]

  6. name = MariaDB

  7. baseurl = http://yum.mariadb.org/10.11/rhel8-amd64

  8. gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

  9. gpgcheck=1

  10. EOF

  11. Install MariaDB:

    • Install MariaDB server and client:

  12. sudo dnf install MariaDB-server MariaDB-client

  13. Start and Enable MariaDB:

    • Start the MariaDB service:

  14. sudo systemctl start mariadb

    • Enable MariaDB to start on boot:

  15. sudo systemctl enable mariadb

  16. Secure the Installation:

    • Run the security script:

  17. sudo mysql_secure_installation

    • Follow the prompts to set the root password and secure the installation.

  18. Verify the Installation:

    • Check the MariaDB version:

  19. mysql -V

This process ensures that MariaDB 10.11 is correctly installed and configured on your Red Hat system.

Oct 13, 2024

2 min read

0

77

0

Comments

Share Your ThoughtsBe the first to write a comment.
bottom of page