This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

mariadb jdbc client having issues, but mysql client working

This issue has been reported before; allegedly it is a server issue and should already be fixed, but it still exists.

Client: mariadb-java-client-2.3.0.jar Server: Mariadb 10.3.10

Symptom: When running my app I get java.sql.SQLNonTransientConnectionException: Could not connect to localhost:3306 : unexpected end of stream, read 0 bytes from 4

No changing of timeouts in the JDBC URL seems to have any effect.

When I replace the mariadb jdbc client by a mysql client it works just fine.

Any suggestions?

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.