Guest User

Untitled

a guest
Jan 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. private void Form1_Load(object sender, EventArgs e)
  2. {
  3. try
  4. {
  5. MySqlConnection conexion = new MySqlConnection("Server=10.0.0.9; Port=3308; Database= baseprincipal; Uid=root; Pwd=; ");
  6. conexion.Open();
  7. }
  8. catch (Exception ex)
  9. {
  10.  
  11. MessageBox.Show( this,ex.Message,"error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  12. }
  13. }
Add Comment
Please, Sign In to add comment