You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using sqlx to connect to MySQL for a user that has no password configured. Is there any way to connect with an empty password and using password: NO activated?
Thanks!
The text was updated successfully, but these errors were encountered:
zshipko
changed the title
Is there any way to set using password: NO for MySQL?
Is is possible to set using password: NO when using MySQL?
Mar 30, 2020
Am I doing something wrong, or is this broken again somehow?
I've tried quite a few different combinations and none seem to be handled properly.
They either are sending some password which is incorrect, or they are failing to properly read and handle the username:
let database_url = "mysql://username@localhost/database?user=username";
let database_url = "mysql://username:@localhost/database?user=username";
let database_url = "mysql://username:@localhost/database?password=";
let database_url = "mysql://username:''@localhost/database?password=";
let database_url = "mysql://'username':@localhost/database?password="
I've probably tried a few others as well, but I can't seem to get it to pass it over properly. I'll always end up with either the, "wrong" password (read: a password which isn't blank), or the username not being recognized and thus resulting in an error like: "Access denied for user ''@'localhost' to database xxx
I am using
sqlx
to connect to MySQL for a user that has no password configured. Is there any way to connect with an empty password andusing password: NO
activated?Thanks!
The text was updated successfully, but these errors were encountered: