Hello,
I do not use the the BasicDataLogger.
i use this code (exemple with one variable) :
Dim conString As String = "server=localhost;userid=root;password=;database=my_database"
Using con As New MySqlConnection(conString)
Using cmd As New MySqlCommand
With cmd
.Connection = con
.CommandText = "insert into my_database.my_table (var1) values (@var1)"
.CommandType = CommandType.Text
.Parameters.AddWithValue("@var1", var1)
End With
Try
con.Open()
cmd.ExecuteNonQuery()
con.Close()
Catch ex As MySqlException
MessageBox.Show(ex.Message + System.Environment.NewLine, "MySQL Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Using
End Using
if the BasicDataLogger is better, please told me how can i use it in order to have the same result.