vi posto anche le info del connector che ho creato...a me sembra tutto ok
![]()
ora con questo codice
ho il seguente errore:codice:string MyConString = "DRIVER={MySQL ODBC 3.51 Driver};" + "SERVER=localhost;" + "DATABASE=plates;" + "UID=root;" + "PASSWORD=mattia;" + "OPTION=3" + "providerName=System.Data.Odbc"; OdbcConnection MyConnection = new OdbcConnection(MyConString); MyConnection.Open(); label.Text = label.Text = "!!! success, connected successfully !!!";
codice:Eccezione non gestita di tipo 'System.Data.Odbc.OdbcException' in System.Data.dll Informazioni aggiuntive: ERROR [IM002] [Microsoft][Driver Manager ODBC] Nome origine dati non trovato e driver predefinito non specificato.

Rispondi quotando