• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Question Changing MariaDB 10.11.14 to MySQL version 8 in Plesk Obsidian version 18 for Ubuntu22.04

myat.m2024

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Plesk Obsidian 18.0.**
Hello everyone,
I am using MariaDB version 10.11 in Plesk Obsidian 18 (Ubuntu22.04). Now, I want to change the DB server from MariaDB 10.11 to MySQL 8 in Plesk Obsidian 18 (Ubuntu22).
Is it possible or not? And is there any risk?

Thank you.
MM
 
Hello, @myat.m2024 . There is no ready-to-use tool for replacing MariaDB with MySQL Plesk provides. Technically, it is possible - typically, the existing database server should be removed and the desired one should be installed. However, this is risky as it might lead to data loss, incompatibility issues, etc. Generally, it is recommended to consider using a Docker container or a remote database server. You can read more about it here:

 
In addition to Sebahat’s answer,

I start the MySQL Docker container using the following command:

Code:
docker run --name mysql8 \
-v /root/mysql8/datadir:/var/lib/mysql \
-v /root/mysql8/conf.d:/etc/mysql/conf.d \
-e MYSQL_ROOT_PASSWORD=Password \
-p 127.0.0.1:3307:3306 \
-p 127.0.0.1:33061:33060 \
mysql:8.4.7

This maps the following volumes:
  • /root/mysql8/datadir → /var/lib/mysql
    (used to persist MySQL database data)
  • /root/mysql8/conf.d → /etc/mysql/conf.d
    (used for additional custom MySQL configuration files)
Both directories are created on the host before starting the container.
 
Back
Top