aws rds Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. code example
Example: java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.
Please add ?characterEncoding=latin1 like this way "jdbc:mysql://localhost/yourDB?characterEncoding=latin1";