猿问

github数据库连接

我从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...


ITMISS
浏览 1073回答 1
1回答

拉丁的传说

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

相关分类

JavaScript
我要回答