Use another mariadb instance

I need to use another mariadb instance in frappe instead of deafualt mariadb config in frappe. How i can do this?