![]() My error is showing ->BC30002: Type 'MySqlConnection' is not defined. ![]() ![]() Type 'MySqlConnection' is not defined I am facing the error on the below code while i created a function call class at app_code. MessageBox.Show("Cannot connect to database: " & ex.Message) If Not db_con Is Nothing Then db_con.Close()ĭb_con.ConnectionString = String.Format("server= pooling=false", db_host, db_username, db_password, db_name)Ĭonsole.WriteLine("Connected to server " + db_host)ĭim Requete As String = "UPDATE client SET nom_client ='client unknown' WHERE nom_client is null"Ĭommande = New MySqlCommand(Requete, Connexion)Ĭonsole.WriteLine("there was " & Commande.ExecuteNonQuery() & " lines changed")Ĭonsole.WriteLine("Disconnected from server " + db_host) ![]() This is the code : (it's a class called ConnectDateBase.vb.) MySqlConnection' is ambiguous in the namespace ' - mysql I'm trying to make a connection to a database on localhost but I have a problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |