I have to connect my Database to an existing code in .NET. My Database is a MySql DB in PhpMyAdmin.
I am using System.Data.SqlClient in .NET and it seems like I cant get the connection String right for the connection function
private string _connetionString = @"Data Source=localhost;Initial Catalog=Testdb;"
SqlConnection _connection;
public DatabaseService()
{
_connection = new SqlConnection(_connetionString);
}
Everytime I start my .Net-Service it needs a long time to and eventually the connection fails.