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
The diesel 2.1.5 version cannot close the tls connection #3996
Comments
Thanks for opening this bug report. Can you please complete the bug template as otherwise this report is not actionable for anyone due to missing details. Additionally you want to provide more details that just stating that "something" does not work. You might want to include additional details like a minimal reproducible example, information about your database system and your client libraries and your environment configuration. |
Thank you very much for your reply. I have added the test examples and test results |
Thanks for adding the details. I'm sorry but there are still some important points missing until this becomes actionable:
|
Thank you very much for your reply. After removing diesel_async, I used diesel to connect mysql and the same problem occurred again #[tokio::main]
async fn main() {
let database_url = "mysql://root:123456@127.0.0.1:3306/test?ssl_mode=disabled";
let mut conn = diesel::mysql::MysqlConnection::establish(&database_url)
.expect("Failed to connect db");
conn.batch_execute("select 1").unwrap();
} |
Thanks for confirming that this is in fact a diesel and not a diesel-async issue. That still leaves the important question about your libmysqlclient unanswered. |
I'm sorry I forgot to add yesterday, libmysqlclient version is 8.0.22 |
Thanks for adding this information. I think I can explain what's wrong here. Diesel sets The fix for this would be to update the bundled bundings in the mysqlclient-sys crate. (Which is not something that is straight forward without breaking compatibility with older libmysqlclient versions). I already started doing that in sgrif/mysqlclient-sys#40, which is just not complete yet. Your contribution is welcome there. |
Versions
Problem Description
When using diesel to connect to mysql, I do not want to use SSL connection, but adding ‘ssl_mode=disabled’ does not work
conn mysql :
wifeshark Indicates the result of packet capture:
The text was updated successfully, but these errors were encountered: