Re: MySQL Connector/J loadbalance feature not working when user credentials changed
Posted by: Filipe Silva
Date: September 12, 2018 04:57AM

Hi,

Second approach could work if you add `loadBalanceSQLStateFailover=28000` to the connection string. However, this will hide true authentication failure errors. I may or may not work on your case.

Note that `28000` is the SQLSTATE you get on authentication failure errors. So, with this option, both connection failure and authentication failure trigger a load-balancing fail over.

IHTH

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL Connector/J loadbalance feature not working when user credentials changed
September 12, 2018 04:57AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.