Example #1
0
 private void DetailsClient_Load(object sender, EventArgs e)
 {
     admin = new Administration();
     try
     {
         connect.Open();
         MessageBox.Show("connecté");
     }
     catch (MySqlException co)
     {
         MessageBox.Show(" non connecté");
         MessageBox.Show(co.ToString());
     }
     this.dataClients();
 }
Example #2
0
        private void Accueil_Load(object sender, EventArgs e)
        {
            admin       = new Administration();
            inscription = new Inscription();
            oublieMdp   = new MdpOublie();
            //MySqlConnection connect = new MySqlConnection("server=atoneoitszguiiss.mysql.db; sshPort=22; database=atoneoitszguiiss; username=atoneoitszguiiss password=Gui19iss; Pooling=true; charset=utf8");
            MySqlConnection connect = new MySqlConnection("server=localhost; database=projet dj; username=root; Pooling=true; charset=utf8");

            try
            {
                connect.Open();
                MessageBox.Show("connecté");
            }
            catch (MySqlException co)
            {
                MessageBox.Show(" non connecté");
                MessageBox.Show(co.ToString());
            }
        }