Bobcares

How to Install MySQL Debian Bullseye

by | May 12, 2022

Install MySQL Debian Bullseye like a pro with this step-by-step guide by our experts.

At Bobcares, we offer solutions for every query, big and small, as a part of our MySQL Support Services.

Let’s take a look at how our MySQL Support Team is ready to help customers install MySQL Debian Bullseye.

How to Install MySQL on Debian Bullseye

Debian 11 also goes by the code name Debian Bullseye. This version of Debian also comes with MariaDB as default like the earlier Debian version. However, we can still install Oracle’s MySQL if we wish to do so.

If you are looking for a guide to take you through the installation of MySQL on Debian Bullseye, you have come to the right place. The process involves the following steps:

  • Download MySQL repository Debian package
  • Add MySQL APT repository
  • Refresh the Debian 11 Repository cache
  • Run command to install MySQL
  • Start & enable Database server service
  • Secure Database server

The prerequisite for installing MySQL on Debian Bullseye includes root access to the server or a sudo user.

How to download MySQL repository Debian package

In order to download the latest MySQL repository Debian package, we can head to https://dev.mysql.com/downloads/repo/apt/ .

Alternatively, we can run the following commands to do the same job:

sudo apt install wget -y
wget https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb

How to add MySQL APT repository

In this section, we are going to install the MySQL repository via the APT package manager.

sudo apt install ./mysql-apt-config_*_all.deb

The above command allows us to select what we want to add through the repository. We have to use the arrow keys to move to MySQL Server & Cluster and press the tab button on the keyboard to select OK and hit the Enter key.

At this point, we will be asked to choose the MySQL Server version we prefer. In this scenario, we are opting for mysql-8.0. Then choose OKand press Enter key.

Then, we will come across the following screen:

Install MySQL Debian Bullseye

Again select Ok and press the Enter key.

The above steps will automatically configure the Debian repository of MySQL on our Debian Bullseye.

How to refresh the Debian Bullseye Repository cache

After adding the repository, we have to run the system update command as seen below in order to rebuild the cache:

sudo apt update

How to run command to install MySQL on Debian Bullseye

Before we install the MySQL database server, we have to remove MariaDB from the system. Then, run the following command:

sudo apt install mysql-server

Now, we have to enter a strong password and then select the Strong authentication method option before choosing OK.

How to run start & enable Database server service

After the above steps, we have to start and enable the MySQL database server service. This allows it to start automatically at system boot.

sudo systemctl enable --now mysql

We can also check the status of the database server service with this command:

systemctl status mysql

How to secure the Database

This additional step keeps our database secure from malicious attacks.

sudo mysql_secure_installation

This command opens a wizard that helps us set a root password, disable remote login, remove the demo database as well as remove anonymous users.

As seen above, installing MySQL on Debian Bullseye is an easy affair as long as we have an easy-to-follow guide like this one.

[Need assistance with another query? We are available 24/7.]

Conclusion

In a nutshell, our skilled MySQL Support Engineers at Bobcares install MySQL Debian Bullseye.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.