top of page
Search

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

  • Fabian John-Baptiste
  • Oct 13, 2024
  • 2 min read

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.

 
 
 

Recent Posts

See All
Advanced IP Scanner

Excellent tool for network administration and troubleshooting. Advanced IP Scanner is a fast, free, and robust network scanner that goes beyond simple ping checks to provide detailed network inventory

 
 
 
Verify VPN and test on Windows 11

Testing, resetting, and verifying your VPN connection in Windows 11 using the command line (Command Prompt or PowerShell) typically involves network diagnostic and configuration tools like ipconfig ,

 
 
 

Comments


bottom of page