Grafana HA With Mysql Split Brain

I have successfully configured a single mysql for Grafana HA.

My new scenario is as follows;

I will have two mysql databases and a third server that will decide which one is master when there is a problem with the network. So I want to use the split brain method.

But how can i configure in grafana.ini config file?

How to write more than one mysql configuration information is there support?