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

数据库连接和报错,提示不允许链接mysql服务 #81

Closed
fenglinhuowu opened this issue Jan 5, 2024 · 0 comments
Closed

数据库连接和报错,提示不允许链接mysql服务 #81

fenglinhuowu opened this issue Jan 5, 2024 · 0 comments

Comments

@fenglinhuowu
Copy link

错误提示:Host 'DESKTOP-MVBD9UE' is not allowed to connect to this MySQL server

配置:
default:
link: "mysql:root:123123@tcp(192.168.2.35:3306)/gfast-v32?charset=utf8mb4&parseTime=true&loc=Local"
debug: true
charset: "utf8mb4" #数据库编码
dryRun: false #空跑
maxIdle: 10 #连接池最大闲置的连接数
maxOpen: 10 #连接池最大打开的连接数
maxLifetime: "30s" #(单位秒)连接对象可重复使用的时间长度

是我这边配置有问题吗?需要把"(192.168.2.35:3306)"删除吗?

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