Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
- val url = "jdbc:mysql://www.domain.com:3306/schema";
- val settings = ConnectionPoolSettings(
- initialSize = 1,
- maxSize = 2,
- connectionTimeoutMillis = 100000L,
- validationQuery = "select 1 from dual");
- ConnectionPool.add('dbval, url, username, pwd, settings);
Add Comment
Please, Sign In to add comment