vim-mysql-plugin icon indicating copy to clipboard operation
vim-mysql-plugin copied to clipboard

Access Denied

Open nighteous opened this issue 2 years ago • 7 comments

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;

nighteous avatar Oct 08 '22 17:10 nighteous

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?

kezhenxu94 avatar Oct 09 '22 02:10 kezhenxu94

I need to specify the password as well with it

nighteous avatar Oct 17 '22 18:10 nighteous

I need to specify the password as well with it

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

kezhenxu94 avatar Oct 17 '22 23:10 kezhenxu94

probably what can we do about that?

also sorry for the late reply, I have been traveling

nighteous avatar Oct 22 '22 11:10 nighteous

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

kezhenxu94 avatar Oct 22 '22 12:10 kezhenxu94

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)

nighteous avatar Oct 22 '22 19:10 nighteous

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

kezhenxu94 avatar Oct 23 '22 01:10 kezhenxu94