Código MySQL:
Ver originalImports MySql
Public Class conexion
Public Shared cn
As MySQLConnection
Public Sub AbrirConexion()
Try
cn = New MySQLConnection(New MySQLConnectionString("127.0.0.1", "astore", "root", "password", 3306)..AsString)
cn.Open()
If cn.State
= ConnectionState.Open
Then MsgBox("conexion exitosa", MsgBoxStyle.MsgBoxRight)
Catch ex
As MySqlException
MsgBox("Error: " & ex.Message)
MsgBox("Error: " & ex.Message)
me salen dos errores:
MySQLConnection no esta definido
&
MySqlException no esta definido....
Ya tenia instalado los paquetes de MySQL.
___ En referencias agrege:
MySql.Data
MySql.Data.CF
MySql.Data.Entity
MySql.Web