鍍金池/ 問答/Linux/ github數(shù)據(jù)庫連接

github數(shù)據(jù)庫連接

我從github上拉取的項目,無法連接數(shù)據(jù)庫,我看項目配置的數(shù)據(jù)庫連接是localhost的,那么我是要自己在本地創(chuàng)建數(shù)據(jù)庫嗎,如果這樣的話那數(shù)據(jù)庫里面的表信息在哪里啊,第一次用github拉項目,萌新求教

部分錯誤信息

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.

拉的項目的數(shù)據(jù)庫配置

spring.datasource.url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=12345678

拉的項目地址
https://github.com/zaiyunduan...

回答
編輯回答
愛是癌

如果你要在你本地運行,那你本地必須要有數(shù)據(jù)庫咯。如果要連遠程的話把配置文件連接信息改成遠程地址就OK了

2018年2月28日 23:03