public static boolean isCredentialError(SQLException e) {
    return e.getErrorCode() == MysqlErrorNumbers.ER_ACCESS_DENIED_ERROR;
  }
@return true if the exception indicates invalid database credentials.
@param e the {@link SQLException}
ambry-mysql/src/main/java/com/github/ambry/mysql/MySqlDataAccessor.java