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
for users running VS2013
In windows 10.
Check if apache service is running. since it gets replaced with World wide web service.
run netstat -n to check this.
stop the service. start apache. restart the service.