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.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
pedaammuluPosted Apr 15, 2007, 12:50 PM
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
milind khirePosted Apr 13, 2007, 7:28 AM