Skip to content
New issue

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

数据库配置 #47

Closed
Ivan-blade opened this issue Nov 22, 2019 · 0 comments
Closed

数据库配置 #47

Ivan-blade opened this issue Nov 22, 2019 · 0 comments

Comments

@Ivan-blade
Copy link

  • 数据库名检查
    • sql脚本中的数据库名和propertities中的数据库名不一致,不排除是个人意外操作,建议在mysql中show databases; 检查库名是否为vueblog2,如果是将propertities中相关配置的数据库名也修改为vueblog2
  • properties示例:
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://localhost:3306/vueblog2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=xxxxxx
mybatis.config-location=classpath:/mybatis-config.xml
        
server.port=8081
logging.level.org.springframework.security=info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant