I don't know what is happening to my MySql.Data
why it is always encountering an error when I am opening a connection.
using MySql.Data.MySqlClient;
MySqlConnection myconn = new MySqlConnection();
myconn.ConnectionString = "server=192.168.0.xxx;port=3306;database=db_name;user id=root;password=pass123";
if (myconn.State == ConnectionState.Closed)
myconn.Open();
then after myconn.Open();
is reach.
I am searching for that specific error here in stack but I don't see any answer.
PS: The code of MySqlConnection
is working fine yesterday, but I don't know why that error appear a little while ago.
PPS : I tried the code of MySqlConnection
in different projects and It is working fine too, but When it comes to my real project it is not working.