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

Access Denied #13

Open
airpods69 opened this issue Oct 8, 2022 · 7 comments
Open

Access Denied #13

airpods69 opened this issue Oct 8, 2022 · 7 comments

Comments

@airpods69
Copy link

airpods69 commented Oct 8, 2022

Password kept in client but still getting Access denied to varoo@localhost

Expected Behavior:
rr should work and display table of users

Actual Behavior:
rr leads to the error
Enter password: ERROR 1045 (28000): Access denied for user 'varoo'@'localhost' (using password: YES)

my.cnf

[client]
user=varoo
password=varoo

[clientAnysuffix]
database=idkdatabase

idk.sql

-- --defaults-group-suffix=Anysuffix
-- -p
-- -t
--

SELECT * FROM USER;
@kezhenxu94
Copy link
Owner

Hi @airpods69 , vim-mysql-plugin relies on the my.cnf and the mysql command to picks up the config, are you able to run mysql --defaults-group-suffix=Anysuffix in your own terminal?

@airpods69
Copy link
Author

I need to specify the password as well with it

@kezhenxu94
Copy link
Owner

I need to specify the password as well with it

So I think your my.inf doesn't take effect for some reason.

@airpods69
Copy link
Author

probably
what can we do about that?

also sorry for the late reply, I have been traveling

@kezhenxu94
Copy link
Owner

probably

what can we do about that?

also sorry for the late reply, I have been traveling

I'm not sure why but that looks to be an issue of mysql client or mysql setup. my.inf should be automatically picked up by the command

@airpods69
Copy link
Author

ah I'll set it up again and check it out again

should I avoid a password for the user just to make it work? (I dont mind doing this since its only for development purposes)

@kezhenxu94
Copy link
Owner

ah I'll set it up again and check it out again

should I avoid a password for the user just to make it work? (I dont mind doing this since its only for development purposes)

You can do that as a workaround but it's better to find out why the my.ini is not working

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

2 participants