ciao... ho questo codice (che fino ad un mese fa e senza modifiche andava).....
ora mi dice Unable to connect to any of the specified MySQL hosts.
ecco il codice:che errore c' è' ???codice:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using MySql.Data.MySqlClient; using System.IO; namespace Nausicaa { public partial class Form3 : Form { MySqlConnection DBConn = new MySqlConnection("Database=nausicaa; Data Source=localhost;User Id=root; Password="); //query string qry = ""; public Form3() { InitializeComponent(); } private void button5_Click(object sender, EventArgs e) { qry = "select* from soci order by id"; upgri(); } private void upgri() { DBConn.Open(); MySqlCommand cmd = new MySqlCommand(qry, DBConn); MySqlDataReader mydr = cmd.ExecuteReader(); string nome, cognome, id, carica, stato; int staton; // while mydr.Close(); DBConn.Close(); } } }
grazie cari !
![]()

Rispondi quotando
