Skip to content

Instantly share code, notes, and snippets.

@explorer14
Last active Jan 13, 2020
Embed
What would you like to do?
using (var connection = new MySqlConnection(
"Server=mydatabase.com;Port=3306;Database=MyDB;Uid=user;Ssl Mode=Required;Pwd=pass123;Pooling=False;"))
{
connection.Open();
// do things with connection for e.g. CRUD etc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment