2014-04-23

Hello,

I have a code which can connect to my host, then to MySQL database and insert in table some value,But i have a problem with connection to host:

server = "";//localhost in PHP

database = "database name";

uid = "username";

password = "password";

string connectionString;

connectionString = "SERVER=" + server + ";" + "DATABASE=" + database + ";" + "UID=" + uid + ";" + "PASSWORD=" + password + ";";

connection = new MySqlConnection(connectionString);

I don't know what to type in server's string.In PHP i know that is "localhost" but seems it's don't work with C#. NET so maybe anyone of you knows what to type in server's value?

Thanks

Show more