Lo siento pense que con la pregunta bastaba
Código:
Imports MySql.Data.MySqlClient
Código vb:
Ver originalPrivate Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Try
Dim con As New MySqlConnection
con.ConnectionString = "server=localhost;user id=root;password=parckas"
con.Open()
Dim command As New MySqlCommand("INSERT INTO cliente VALUES (" & TextBox3.Text & ",'" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "'," & TextBox8.Text & ",'" & TextBox9.Text & "')", con)
command.ExecuteNonQuery()
MessageBox.Show("DATOS GUARDADOS")
con.Close()
Catch ex As Exception
MessageBox.Show("error del servidor")
End Try
End Sub
AL solo conectar a la dabse de datos me confirma la conexion, pero a la hora de insertar algo me manda error