Cara tb sou novo iniciante mas consegui o codigo p fazer a consulta ao mysql utilizando um datagridview segue abaixo:
Imports MySql.Data.MySqlClient
Public Class Pesq_Clientes
Dim conn As New MySqlConnection
Dim myCommand As New MySqlCommand
Dim myadapter As New MySqlDataAdapter
Dim mydata As New DataTable
Dim sql As String
Private Sub Pesq_Clientes_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conn As MySqlConnection
conn = New MySqlConnection
conn.ConnectionString = "server=localhost;user id=root;password=seu password;database=seubancodados"
sql = "SELECT*FROM automotive.Clientes"
conn.Open()
myCommand.Connection = conn
myCommand.CommandText = sql
myadapter.SelectCommand = myCommand
myadapter.Fill(mydata)
DataGrid1.DataSource = mydata
MsgBox("oi")
conn.Close()
conn.Dispose()
End Sub
End Class
Caso vc descubra como ler um determinado campo oou como gravar ou atualizar dados favor poste aqui ou me envie por e-mail ok?
Abraços