MariaDB is a popular open-source relational database management system that is widely used as a drop-in replacement for MySQL. In this guide, we will walk you through the steps to install MariaDB 10.6 on Rocky Linux 8.
Step 1: Update Your System
Start by ensuring your system is up to date:
sudo dnf update -y
Step 2: Install the MariaDB Repository
Add the MariaDB repository to your system:
sudo vi /etc/yum.repos.d/MariaDB.repo
Then add the following configuration:
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.6/rocky8/amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Step 3: Install MariaDB
Now, install MariaDB using the following command:
sudo dnf install MariaDB-server MariaDB-client -y
Step 4: Start MariaDB Service
Start the MariaDB service:
sudo systemctl start mariadb
Enable it to start at boot:
sudo systemctl enable mariadb
Step 5: Secure MariaDB Installation
Run the security script to secure your installation:
sudo mysql_secure_installation
Follow the prompts to set up a root password and remove insecure defaults.
Step 6: Access MariaDB
Log into MariaDB to confirm the installation:
sudo mysql -u root -p
Conclusion
You have successfully installed MariaDB 10.6 on Rocky Linux 8. This powerful database management system will help you manage your data efficiently.
If you're looking for a reliable hosting solution for your MariaDB server, consider using Windows VPS UK. With Windows VPS, you can efficiently host your applications and ensure high performance. Whether you need VPS UK Windows or Windows Virtual Private Servers, you'll find a solution that fits your requirements.
For larger deployments or enterprise needs, explore Windows Virtual Dedicated Server Hosting or Virtual Private Server Hosting Windows. Whether you're located in the UK, Italy, or elsewhere, Windows VPS Italy and UK VPS Windows offer reliable hosting options. Visit Windows VPS Hosting UK to discover the best hosting solutions for your needs.