

To configure MariaDB properly we need to run a security script using the below-mentioned command: sudo mysql_secure_installationĪfter running the above command, you will be prompted with various options: Now, to install MariaDB, execute the below-mentioned command: sudo apt install mariadb-server Configure MariaDB on Debian

For this tutorial, we will install MariaDB on Debian 11 system via default repositories.įirstly, update the packages list using: sudo apt update

You can directly install it without adding an extra repo to your system. The MariaDB packages are available under the official repositories. This article is focusing on how to install MariaDB, an alternative to MySQL on Debian 11. MySQL is currently not available for Debian 11 Bullseye, so MariaDB is a perfect choice.
