top of page
  • Black Facebook Icon
  • Black Instagram Icon
  • Black YouTube Icon

Hoopmaps Group

Public·1206 members

MariaDB on Debian 12: A No-Fuss Installation Method

 If you’re looking for a simple and reliable way to install MariaDB on Debian, especially Debian 12, this no-fuss method will get you up and running in just a few steps. MariaDB is a powerful, open-source database server that's ideal for both small projects and enterprise applications. Thanks to Debian’s robust package system, the installation process is easier than ever.

Start by updating your system to ensure you’re working with the latest packages:

sudo apt update && sudo apt upgrade -y


Now, install MariaDB with a single command:

sudo apt install mariadb-server -y


This installs the latest available version of MariaDB from Debian’s default repositories.

Once installed, enable and start the MariaDB service so it runs on boot:

sudo systemctl enable mariadb

sudo systemctl start mariadb


Check its status with:

sudo systemctl status mariadb


Next, secure your database setup using the built-in security script:

sudo mysql_secure_installation


This step lets you set a root password, remove anonymous users, and disable remote root access—simple actions that greatly improve your database security.

Log in to MariaDB with:

sudo mariadb


Now you’re ready to create databases, users, and manage permissions.

For a more detailed walkthrough and advanced configuration options, you can refer to this complete guide to install MariaDB on Debian.

Whether you’re setting up a dev environment or launching a web application, this quick method ensures your MariaDB installation is smooth, secure, and ready to use.


3 Views

Members

  • Acutrack, Inc
    Acutrack, Inc
  • cupidbaba
  • Tran Hai
    Tran Hai
  • Lotus Book
    Lotus Book
  • Assistance CBC
    Assistance CBC
bottom of page