Simple C # connection problem with MYSQL

-1

I have a problem with the following error when attempting to do a simple insert of an activity in my mysql database: "System.ArgumentException: 'The format of the initialization string does not conform to the specification started in index 57." do some changes to try to solve the problem just changed the error index can anyone help me to solve the problem?

    
asked by anonymous 05.07.2018 / 14:38

1 answer

-1

In your connection string 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";

    
05.07.2018 / 14:46