Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- using (MySqlConnection con = new MySqlConnection("server=xxxx;user=xxxx;database=xxxx;password=xxxx;"))
- {
- try
- {
- con.Open();
- MessageBox.Show("Подключился");
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement