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

"Error 1698: Access denied for user" while using unix socket plugin #156

Open
ghost opened this issue Sep 5, 2018 · 0 comments
Open

"Error 1698: Access denied for user" while using unix socket plugin #156

ghost opened this issue Sep 5, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 5, 2018

Hi,

I'm using this plugin: https://mariadb.com/kb/en/library/authentication-plugin-unix-socket/

And I can access MySQL from command line. However using this code:

mysql::Pool::new("mysql://user@localhost/db").unwrap();

will raise this error:

MySqlError { ERROR 1698 (28000): Access denied for user 'user'@'localhost' }

Edited

It seems the library doesn't support this use case yet. So I applied another plugin mysql_native_password for that user, and it worked.

It would be great if you consider adding support for unix_socket plugin.

Thank you,

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

0 participants