Hello, it cannot be easily replaced.
After the server makes a snapshot backup, back up the database, record the database name, user name, password, delete the database, uninsatll mysql,
Finally install mariadb, create the database using the recorded database name, username, password, and finally import the database