

If you don’t require the Database on your Debian Server or Desktop then use the below commands: sudo apt remove maridb-server Set the root password for MariaDB, remove demo database, disable remote login and remove anonymous user accounts. mysql_secure_installationĪs you run the command, a text-based wizard will open, just follow it. If you are about to use a Database in some application via a public network then it is recommended to run a command to secure the MariaDB.

To enable and disable, so that it will not start automatically: sudo systemctl enable mariadbįor restarting: sudo systemctl restart mariadb Whereas, to stop, restart and disable the service: sudo systemctl stop mariadb mariadb -version systemctl status mariadb Once the installation is completed we can check the version and status of the Database server, whether it is running in the background or not. To install it: sudo apt install mariadb-server To check and confirm we can use the APT show command: apt show mariadb-server Install MariaDB 10.6 on Debian 11 BullseyeĪfter performing the all above-given commands we can easily install MariaDB 10.6. echo "deb \īullseye main" | sudo tee /etc/apt//mariadb.list sudo apt updateĤ. Paste the whole block of the given command and hit the Enter key. Next, add the MariaDB repo meant to get the version 10.06 manually on your Debian 11 Linux using the below-given command: Sudo mv -vi mariadb_release_signing_key.asc /etc/apt// Sudo chmod -c 644 mariadb_release_signing_key.asc

This will help the system to confirm whether the packages are from the authentic source and have not been altered. Let’s download and add a GPG key, signed by MariaDB developers to verify the packages that we get to install this Database. Importing the MariaDB GPG Public Key on Debian 11 sudo apt-get install software-properties-common dirmngrĢ.

There are few packages that we require to easily manage our distribution and independent software vendor sources. Those who want the 10.6 version can go for further steps… Whereas to install it the command will be: sudo apt install mariadb-server Note: If you want the default available version in the Debian 11 base repo then you can check that using a command: apt show mariadb-server Run the system update command that will install all the available updates along with refreshing of system repository cache. Uninstallation – MariaDB 10 Install MariaDB Server 10.6 on Debian 11 Bullseye Linux
