I am just creating a new program that will connect to mysql.
I just do it but the problem is localhost. I want to use my cpanel ip ( my web address ip ) in Server instead of localhost.
My code is this
    server = "37.187......";
    database = "mydbname";
    uid = "mydbid";
    password = "mydbpass";
    string connectionString;
    connectionString = "SERVER=" + server + ";" + "DATABASE=" +
    database + ";" + "UID=" + uid + ";" + "PASSWORD=" + password + ";";
    connection = new MySqlConnection(connectionString);
    MessageBox.Show("CONNECT");
when i run this code it cant be connect with mysql 
but when i use server = "localhost"; it runs easily.
Any solution ?
 
    