This Code gives me this error
Unable to connect to specified host
my Code goes like this
Unable to connect to specified host
my Code goes like this
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
try
{
string MySqlconnectionString = "Server=mysql.hostinger.co.uk;Database=u228335575_pinfo;Uid=u228335575_root;Pwd=root1234;";
MySqlConnection connection = new MySqlConnection(MySqlconnectionString);
MySqlCommand cmd;
connection.Open();
Console.WriteLine("Connected");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
Console.ReadLine();
}
}
}