I'm trying to connect to a local MySQL DB.
I have this connector:
using(MySqlConnection conn = new MySqlConnection("Database=Studentenverwaltung;Port=3306;Data Source=127.0.0.1;User Id=root;Password=abc123"))
{
try
{
conn.Open();
Console.WriteLine("Opened!");
conn.Close();
}
catch(Exception e)
{
Console.WriteLine("Cannot open Connection");
Console.WriteLine(e.ToString());
}
}
But I get this Exception:
MySql.Data.MySqlClient.MySqlException (0x80004005): The host 127.0.0.1 does not support SSL connections.
It seems that it cannot connect to the DB because the DB doesn't support SSL. So is there a way how to connect to the DB whithout SSL?