Guest User

Untitled

a guest
Sep 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  2.  
  3. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  4.  
  5. val url = "jdbc:mysql://www.domain.com:3306/schema";
  6.  
  7. val settings = ConnectionPoolSettings(
  8. initialSize = 1,
  9. maxSize = 2,
  10. connectionTimeoutMillis = 100000L,
  11. validationQuery = "select 1 from dual");
  12.  
  13. ConnectionPool.add('dbval, url, username, pwd, settings);
Add Comment
Please, Sign In to add comment