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: issue mysql driver cannot connect when using unix domain socket #3862

Open
bt-dev3 opened this issue Oct 17, 2024 · 0 comments
Open
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@bt-dev3
Copy link

bt-dev3 commented Oct 17, 2024

Go version

go version go1.21.0 linux/amd64

GoFrame version

v2.7.4

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

I using unix domain socket /tmp/mysql.sock connect to mysql, i catch the error.
The Link like this: mysql:username:password@unix(/tmp/mysql.sock)/

What did you see happen?

I catch the error message below:
dial unix /tmp/mysql.sock:: connect: no such file or directory
and i check the driver source code, Determine that the problem is in both places.

in goframe
file 1: database/gdb/gdb_core_config.go
image

in github.com/gogf/gf/contrib/drivers/mysql/v2
file 2: mysql_open.go
image

What did you expect to see?

please fix this bug.

@bt-dev3 bt-dev3 added the bug It is confirmed a bug, but don't worry, we'll handle it. label Oct 17, 2024
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