We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问这个数据库是使用的mysql还是redis呢,我将sql文件导入mysql,启动redis服务,username和password写的mysql的用户名和密码,报错了
The text was updated successfully, but these errors were encountered:
spring.datasource.url=jdbc:mysql://localhost:3306/tp_music?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC spring.datasource.username=root spring.datasource.password=123456 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
从配置文件中可以看出使用的是MySQL,你要将报错信息粘贴出来,这样才能准确定位问题
Sorry, something went wrong.
我忘了代码,推测一下哈,MySQL是作为DB存储来使用,Redis是作为缓存来使用。你可以先找个docker教程将mysql和redis分别启动,然后将项目中的配置文件和自己docker的容器配置做比较进行替换
spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/springboot_learning?serverTimezone=Asia/Shanghai&characterEncoding=utf-8 username: root password: root redis: host: localhost port: 6379 password: 123456 database: 0 lettuce: pool: max-idle: 16 max-active: 32 min-idle: 8
No branches or pull requests
请问这个数据库是使用的mysql还是redis呢,我将sql文件导入mysql,启动redis服务,username和password写的mysql的用户名和密码,报错了
The text was updated successfully, but these errors were encountered: