Data base query

I have installed frappe erpnext on ubuntu hench all database of mariadb is on same ubuntu os. Is it possible to keep database in windows os and do db operations without any difficulty?

or is there any gateway to do it??

While moving towards production its comes in my mind…