How do I connect mysql in the first time?

Viewed 32

An error occurred When i use C# to connect mysql in first time.

the error message is:

Connection open error . Authentication to host 'localhost' faied.

...but in the second time,it become normal.

this is my connect string

DefaultConnectionString": "Server=localhost;Database=DatabaseName;Uid=root;Pwd=123456;
1 Answers

if you add:

ConnectionReset=True; 

.this command is supposed to make one more trip and reset the connection.

Related