How to use single mysql databse with muptiple openfire server

i just want to use single mysql databse with two openfire server which are hosted in different servers .
For Example- one openfire server is running on Server A and other is running on Server B ,so how can i use only single databse for both openfire

Basically i just want to configure master slave concept of mysql here for load balancing please help me

Thank you

If the two openfire servers are not clustered, simply create two independent databases within MySQL, and configure the servers appropriately.

If you want a cluster of servers, checkout Process for checking clustring working or not in openfire