User-939850651 posted
Hi venkatzeus,
In Java, you could obtain a Connection
instance that is connected to a particular database by calling
DriverManager.getConnection(url) using the
databaseURL you mentioned.
But in C#, if you want to connect to MySql database, you need to use
MySql.Data.MySqlClient reference, and follow its specifications and use the correct connection string to get the connection instance.
Something like:
string connStr = "server=localhost;database=test;port=3306;user=xxx;password=xxx";
MySqlConnection conn = new MySqlConnection(connStr);
You could also refer to this offcial document.
Best regards,
Xudong Peng