The MySqlConnection type is not defined

0
Imports MySql.Data.MySqlClient
Public Class Form1


    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Try
            Dim conexion As New MySqlConnectionStringBuilder()
            conexion.Server = "localhost"
            conexion.UserID = "root"
            conexion.Password = ""
            conexion.Database = ".net"
            Dim con As New MySqlConnection(conexion.ToString())
            con.Open()
            MsgBox("Conexion Establecida")
        Catch ex As Exception
            MsgBox("No se Pudo establecer la conexion" & ex.Message)
        End Try
    End Sub
End Class

Add the reference, after installing and others, but keep saying it is not defined .. Help

    
asked by Jeronimo 22.02.2018 в 22:06
source

1 answer

0

I just did a test in my environment installing the mysql from scratch link and it worked OK. Attached evidence to verify the configuration

    
answered by 22.02.2018 в 23:40