MySQL connector namespace error in Visual Studio 2003
Posted on 2005-03-20
I'm totaly new to .Net but have done a course and have a book. Installed the MySQL .net Connector and have Visual Studio 2003 running on my computer.
I know I need an import statement to get the MySQL connector to work and have added the text below but just get a squiggley line underneath and a namespace not found error message.
Public Class WebForm2
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim myconstring = New mysqlconnection("Database=log;Data Source=192.168.0.11;User Id=root")
Dim MyConnection As New OdbcConnection(MyConString)
So what have I done wrong?