完數(shù)據(jù)庫(kù)后,啟動(dòng)項(xiàng)目報(bào)錯(cuò)
廖師兄,我配置完數(shù)據(jù)庫(kù)后,啟動(dòng)項(xiàng)目報(bào)錯(cuò),請(qǐng)問(wèn)是什么原因
2018-09-06 07:52:37.710 ERROR 12844 --- [? ? ? ? ? ?main] com.zaxxer.hikari.pool.HikariPool? ? ? ? : HikariPool-1 - Exception during pool initialization.
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.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_31]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_31]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_31]
at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[na:1.8.0_31]
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) ~[mysql-connector-java-5.1.46.jar:5.1.46]
yml文件內(nèi)容
spring: ??profiles: ????active:?prod ??datasource: ????driver-class-name:?com.mysql.jdbc.Driver ????url:?jdbc:mysql://127.0.0.1:3036/dbgirl ????username:?root ????password:?123456 ??jpa: ????hibernate: ??????ddl-auto:?create ????show-sql:?true
2018-09-06
你的數(shù)據(jù)庫(kù)密碼是123456嗎?