Debian 10 Linux (Buster) is the latest release of Debian-based Operating System which has a MariaDB as a default in their Repository. As we all know that MySQL is the widely used open-source RDMS (Relational Database Management System). In this post, we will see how to install MySQL Database on Debian 10 Linux (Buster) using MySQL official APT Repository. Let’s get started.
3. Firewall access to download packages.
Update the latest package on your Debian system and install MySQL Server by running below command.
Next, you will be prompted to select Authentication Plugin and select “OK” to continue
MySQL Service will start automatically, once the installation is complete. Check the status of MySQL Service.
$ sudo systemctl status mysql
Step 5 – Securing MySQL
Run the following command from the console to set root password and secure other items. You will be asked series of YES or NO questions and it’s done.
$ sudo mysql_secure_installation