Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  2. spring.datasource.url=jdbc:mysql://localhost:3306/gbi? useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=fa lse&serverTimezone=UTC&autoReconnect=true&failOverReadOnly=false&maxReconne cts=10
  3. spring.jpa.database-platform =org.hibernate.dialect.MySQLDialect
  4. spring.datasource.username=******
  5. spring.datasource.password=******@
  6. spring.datasource.pool.size=20
  7. spring.jpa.hibernate.ddl-auto=update
  8. server.port=8090
  9.  
  10. Unable to create initial connections of pool.
  11. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
  12. Could not create connection to database server. Attempted reconnect 10
  13. times. Giving up.
  14. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  15.  
  16. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
  17. Communications link failure
  18.  
  19. The last packet sent successfully to the server was 0 milliseconds ago.
  20. The driver has not received any packets from the server.
  21. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  22. Method)
  23. atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  24. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  25.  
  26. Caused by: java.net.ConnectException: Connection refused (Connection
  27. refused)
  28. at java.net.PlainSocketImpl.socketConnect(Native Method)
  29. atjava.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  30.  
  31. 2017-Oct-09 15:24:49.735 WARN [main] o.s.b.a.o.j.DatabaseLookup -
  32. Unable to determine jdbc url from datasource
  33. org.springframework.jdbc.support.MetaDataAccessException: Could not get
  34. Connection for extracting meta data; nested exception is
  35. org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get
  36. JDBC Connection; nested exception is
  37. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
  38. Could not create connection to database server. Attempted reconnect 10
  39. times. Giving up.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement