Installing mariadb
Capital City Christian Church
Installing mariadb

These notes apply to installing mariadb version 10 to Kali (2021 4) Linux (5.15)

The steps in this page are taken from; https://computingforgeeks.com/how-to-install-mariadb-on-kali-linux/ That page will provide a more detailed explanation of these steps.

Prep your host;
    $ sudo apt update
    $ sudo apt upgrade
    $ sudo reboot
Setup the proper repository;
    $ sudo apt -y install software-properties-common gnupg2
    $ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
    $ echo "deb [arch=amd64] http://mariadb.mirror.liquidtelecom.com/repo/10.6/debian bullseye main" | sudo tee /etc/apt/sources.list.d/mariadb.list
Update your local apt database;
    $ sudo apt update
    $ apt policy mariadb-server
Final prep of your host;
    $ sudo apt update
    $ sudo apt remove mysql-common
    $ sudo apt install mariadb-server
Start mariadb running;
    $ sudo systemctl enable --now mariadb
    $ systemctl status mariadb
Set the basic security for your new installation;
    $ sudo mysql_secure_installation

These are the answers to the questions;

    Enter current password for root (enter for none):
    Switch to unix_socket authentication [Y/n] y
    Change the root password? [Y/n] y
    Remove anonymous users? [Y/n] y
    Disallow root login remotely? [Y/n] y
    Remove test database and access to it? [Y/n] y
    Reload privilege tables now? [Y/n] y

Now you can log into your database and begin work.

    $ mysql -u root -p