If you want to use the latest release of MariaDB instead of the default MariaDB or MySQL shipped with Plesk, the easiest solution is to install MariaDB before installing Plesk.
Add MariaDB repository :
MariaDB provide a bash script to automatically add MariaDB repository, and you can choose directly the release you want to install with the argument --mariadb-server-version=10.X
.
For example for MariaDB 10.3, you can use the command :
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup |
sudo bash -s -- --mariadb-server-version=10.3 --skip-maxscale
Install MariaDB server :
Do not set root password during the installation
sudo apt-get update
sudo apt-get install mariadb-server -y
Install Plesk Onyx
After the end of MariaDB installation, you can download Plesk installer and launch Plesk installation
wget https://installer.plesk.com/plesk-installer
chmod +x ./plesk-installer
./plesk-installer --all-versions