
Fabian Tech Tips

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
Enable the MariaDB Module:
List available MariaDB modules:
sudo dnf module list mariadb
Enable the MariaDB 10.11 module:
sudo dnf module enable mariadb:10.11
Install MariaDB:
Install the MariaDB server and client:
sudo dnf install mariadb-server mariadb
Start and Enable MariaDB:
Start the MariaDB service:
sudo systemctl start mariadb
Enable MariaDB to start on boot:
sudo systemctl enable mariadb
Secure the Installation:
Run the security script:
sudo mysql_secure_installation
Follow the prompts to set the root password and secure the installation.
Verify the Installation:
Check the MariaDB version:
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
Update Your System:
Ensure your system is up to date:
sudo dnf update
Enable the MariaDB Repository:
Create a repository file for MariaDB:
sudo tee /etc/yum.repos.d/MariaDB.repo <<EOF
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.11/rhel8-amd64
gpgcheck=1
EOF
Install MariaDB:
Install MariaDB server and client:
sudo dnf install MariaDB-server MariaDB-client
Start and Enable MariaDB:
Start the MariaDB service:
sudo systemctl start mariadb
Enable MariaDB to start on boot:
sudo systemctl enable mariadb
Secure the Installation:
Run the security script:
sudo mysql_secure_installation
Follow the prompts to set the root password and secure the installation.
Verify the Installation:
Check the MariaDB version:
mysql -V
This process ensures that MariaDB 10.11 is correctly installed and configured on your Red Hat system.