Can I have installed MariaDB for one virtual server (domain) and MySQL for another

hello every one

I have a new VPS
I installed ubuntu 20.04
and some WP in some virtual hosts
default DB is SQL

I need to install another script which need mariaDB server

is this situation doable or not?
if I created a new partition will it work?

i faced this error

l# sudo apt install mariadb-server

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.29-0ubuntu0.20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

No. Virtual servers in Virtualmin are not independent virtual machines, they all share the same host services. A virtual server in Virtualmin is a user, a virtual host in Apache/nginx, one or more databases and database user, a virtual domain in Postfix, etc.

You cannot have both MariaDB and MySQL installed (easily) on the same system. And, you don’t need to. The two databases are functionally identical for most people and apps. Any differences are minor and easily accommodated with minor changes to code or schema.

1 Like

Thank you for clear clarification
saved me a lot of time

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.