Take the 2-minute tour ×


We use the following jdbc url string:


The problem is that the application will not start if one of the slaves is down, or would halt if it's running and one of the slaves is down. Is there a problem with the url string, should it be setup differently ?

share|improve this question
Why don't you just setup the replication at the server level and then create separate connections for slave and master databases? –  FoneyOp Apr 15 '11 at 19:22
why would I want to do that ? –  talg Apr 15 '11 at 19:46
Then you can use a normal jdbc connection with a 1 or 2 second timeout and round robin in your app to avoid this issue. You may also be interested in: bugs.mysql.com/bug.php?id=39611 –  FoneyOp Apr 15 '11 at 22:14
add comment

Your Answer



Browse other questions tagged or ask your own question.