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

How to get the tenant when mysql client connect? #837

Open
dobet opened this issue Mar 15, 2024 · 1 comment
Open

How to get the tenant when mysql client connect? #837

dobet opened this issue Mar 15, 2024 · 1 comment

Comments

@dobet
Copy link
Contributor

dobet commented Mar 15, 2024

when I use mysql client connect to arana, I got an error that

ERROR 1045 (28000): Access denied for user 'root'

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):
this is my config file

config.txt

Anything else we need to know?:

I try to debug code. And found the error in mysql/server.go line 541

image

Because GetTenants() return nil, so, no tenant matched. And return an Access denied Error

@dobet
Copy link
Contributor Author

dobet commented Mar 15, 2024

why my config don't load tenant info ? I need create an arana tenant?

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