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
Sometime the problem could be on your windows firewall, make sure your server allow access to all port associated with your mysql database.