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

os/gtime: I can't link to mysql database even my config is correct #4160

Open
wk-mantou opened this issue Feb 14, 2025 · 1 comment
Open
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@wk-mantou
Copy link

Go version

go version go1.22.4 windows/amd64

GoFrame version

2.8.3

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

i use your cli gf to init a project, with the same config i can create dao do , but can't link to my database, i confirm my config is correct
i use default config to link to my local mysql database, when i use your driver, i can't link to my database and the error is [Access denied for user 'root'@'localhost' (using password: YES)"].
But when i use database/sql and https://github.com/go-sql-driver/mysql, i can link to my database success.
I want to know what cause this, and how to solve

What did you see happen?

error is [Access denied for user 'root'@'localhost' (using password: YES)"]

What did you expect to see?

I want to know what cause this, and how to solve.
i want to use your driver to link to mysql

@wk-mantou wk-mantou added the bug It is confirmed a bug, but don't worry, we'll handle it. label Feb 14, 2025
@wk-mantou wk-mantou changed the title os/gtime: issue title os/gtime: I can't link to mysql database even my config is correct Feb 14, 2025
@wk-mantou
Copy link
Author

ok i know why, must create a config.yaml in config or outside? sry i hooked myself, i code my database config in hack/config, i thought it can take effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

1 participant