public static void Main() { MySqlConnection MySql_Connection; string MySql_ConnectionString; MySql_ConnentionString = "server=localhost;"; MySql_ConnectionString += "user=root;"; MySql_ConnectionString += "database=world;"; MySql_ConnectionString += "password=******;"; MySql_Connection = new MySqlConnection(MySql_ConnentionString); try { MySql_Connection.Open(); // Verbindung öffnen } catch (Exception ex) { Console.WriteLine(ex.ToString()); } MySql_Connection.Close(); // Verbindung schließen }