Unable to connect to any of the specified mysql hosts. C# MySQL

后端 未结 15 1425
庸人自扰
庸人自扰 2020-11-29 07:11

I am getting the above error when I execute the code -

MySqlConnection mysqlConn=new MySqlConnection(\"server=127.0.0.1;uid=pankaj;port=3306;pwd=master;datab         


        
15条回答
  •  -上瘾入骨i
    2020-11-29 07:36

    Just ran into the same problem. Installing the .NET framework on the target machine solved the problem.

    Better yet, make sure all required dependencies are present in the machine where the code will be running.

提交回复
热议问题