Skip to content

Commit

Permalink
Attempt to fix multi-az mysql-latest mariadb test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Jan 22, 2025
1 parent 95a90a2 commit beaf26d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,10 @@ public void test_pooledConnection_differentUsers() throws SQLException {
String limitedUserNewDb = "limited_user_db";
limitedUserProps.setProperty(PropertyDefinition.USER.name, limitedUserName);
limitedUserProps.setProperty(PropertyDefinition.PASSWORD.name, limitedUserPassword);
// This property is required when using limited_user with the mariadb driver against multi-az mysql version 8.4,
// or you will get the error "RSA public key is not available client side". The mariadb driver may not fully support
// all aspects of mysql 8.4's SSL mechanisms, which is why this property is only required for newer mysql versions.
limitedUserProps.setProperty("allowPublicKeyRetrieval", "true");

Properties wrongUserRightPasswordProps = getProps();
wrongUserRightPasswordProps.setProperty(PropertyDefinition.USER.name, "bogus_user");
Expand Down

0 comments on commit beaf26d

Please sign in to comment.