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
When attempting to connect to a MySQL 5.* database, the following error occurs:
Error:Database(MySqlDatabaseError { code:Some("28000"), number: 1045, message: "Access denied for user 'User'@'ip' (using password: NO)" })
This error fires if select wrong driver - test it with DataGrip 2023.1.2
The same connection parameters work without issues on MySQL 8.*.
Minimal Reproduction
use sqlx::mysql::MySqlPoolOptions;#[tokio::main]asyncfnmain() -> Result<(), sqlx::Error>{let pool = MySqlPoolOptions::new().max_connections(5).connect("mysql://User:Password@host:3306/database_name").await?;Ok(())}
From the error, it appears MySQL thinks you have not sent a password, so be sure it's not an issue with the password itself (does it contain characters that need to be URL-encoded?), or the configured default authentication plugin.
Bug Description
When attempting to connect to a MySQL 5.* database, the following error occurs:
This error fires if select wrong driver - test it with DataGrip 2023.1.2
The same connection parameters work without issues on MySQL 8.*.
Minimal Reproduction
Info
rustc --version
: rustc 1.83.0 (90b35a623 2024-11-26)The text was updated successfully, but these errors were encountered: