为了账号安全,请及时绑定邮箱和手机立即绑定

github数据库连接

github数据库连接

ITMISS 2018-09-08 19:57:48
我从github上拉取的项目,无法连接数据库,我看项目配置的数据库连接是localhost的,那么我是要自己在本地创建数据库吗,如果这样的话那数据库里面的表信息在哪里啊,第一次用github拉项目,萌新求教、部分错误信息com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.拉的项目的数据库配置spring.datasource.url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=falsespring.datasource.username=root spring.datasource.password=12345678拉的项目地址https://github.com/zaiyunduan...
查看完整描述

1 回答

?
拉丁的传说

TA贡献1789条经验 获得超8个赞

如果你要在你本地运行,那你本地必须要有数据库咯。如果要连远程的话把配置文件连接信息改成远程地址就OK了

查看完整回答
反对 回复 2018-09-09
  • 1 回答
  • 0 关注
  • 1072 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信