Question
How to replace MariaDB with MySQL on Ubuntu with Plesk?
Answer
Such a scenario was not tested and replacement is not guaranteed to work.
Changing MariaDB to MySQL is an administrative task and should be performed by the client at their own risk.