Reinstall db, mariadb deleted by mistake

I have deleted mariadb from my ubuntu server.
I want to installed mysql and now I want to install mariadb on same server, and restore db.
How can I do it.

Did you have backup of your sites?
If yes, you can simply install the database then do a “bench --site {your site name} restore {path to your db backup file}”

I just want erpnext fresh database. because I didn’t take backup and I didn’t perform any changes in that DB.

@megha007 try bench migrate after installing mariadb . it should rebuild the database