After a lot of retries I switched to MySQL and now I have no more problems.
C# 'The handshake failed due to an unexpected packet format.' exception opening MariaDb database
I'm writing a WPF C# program.
I need to connect to a MariaDB (10.4.21) database: the Open() function always breaks with IOException and the message 'The handshake failed due to an unexpected packet format.'.
The connection string is: "server=localhost;user id=root;persistsecurityinfo=True;port=3306;database=mydb;pwd=pass"
and it is copyAndPasted from VS2019 server explorer window.
VS2019 installed the 'MySQL for Visual Studio' extension 1.2.9.
I don't use SSL.
The connection inside the VS2019 is OK.
The connection on command line is OK.
The connection with HeidiSQL is OK.
Sign in to comment
Sort by: Most helpful