Simple C# MYSQL connection problem

Asked

Viewed 524 times

0

Speak guys I’m with the following error when trying to make a simple Insert of an activity in my mysql database "System.Argumentexception: 'The boot chain format does not conform to the specification started in index 57." , making some changes to try to solve the problem only changed the error index someone can help me solve the problem?inserir a descrição da imagem aqui

  • I suggest giving a read here, it becomes more difficult to help with image, some of us can’t even see the image by network limitations

  • Post the code instead of the image.

  • https://www.connectionstrings.com/mysql/

1 answer

1


In your string Connection is ssl:true, switch to Sslmode=required And in the password field, use PASSWORD=\"\"

string caminho = "SERVER=TestePorta;DATABASE=db_exemplo;UID=root;PASSWORD=\"\";SslMode=required";

  • After the changes the following error occurred : System.Argumentexception: 'Option not supported. Parameter name: ssl' .

  • Then change the SSL=true parameter to Sslmode=required

  • Opa friend thanks solved my problem!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.