Connect database(mysql) with other computer on ip number
i have a mysql database and i want to connect this database on other computer. i don't know how can i use c# command.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
milind khire33 pointsPosted Apr 13, 2007, 3:28 AM EDT
pedaammulu32 pointsPosted Apr 15, 2007, 8:50 AM EDT
string connectionString = "Data Source=201.70.128.58;database=jobs;User ID=User1;Password=cd5678;";
SqlConnection conn = new SqlConnection(connectionString);
The above code works with SQL Server. I have not tested with mysql.
Learn Database programming