MariaDB installation script for Ubuntu server 22.04.
Go to file
allan d8be6980e7 Initial commit 2024-02-21 10:54:39 +01:00 Initial commit 2024-02-21 10:54:39 +01:00
mariadbinstall Initial commit 2024-02-21 10:54:39 +01:00

MariaDB install script for Ubuntu 22.04 server


An Ubuntu 22.04 server although this should work on Ubuntu 20.04 as well.

Download the script

git clone


cd mariadb-install
sudo ./mariadbinstall [-p] <master password>


sudo ./mariadbinstall -p mysecretpasswd


The script adds the following to the MariaDB configuration

bind-address =
log_error = /var/log/mysql/error.log

Due to the fact that we enable skip-name-resolve please note that MariaDB:
will no longer treat as localhost just a heads up when you debug.

Post install

Nothing to do.

More guides can be found on []

Last tested

January 12th 2024 on Ubuntu 22.04.