Solved

need help to create connection to mysql database

Posted on 2006-11-28
6
178 Views
Last Modified: 2010-04-23
Someone please help me create the connection to a mysql server....  
0
Comment
Question by:prowebinteractive
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:maralans
ID: 18029577
0
 
LVL 5

Expert Comment

by:maralans
ID: 18029595
0
 

Author Comment

by:prowebinteractive
ID: 18029660
this code does not work..

undefined  MySql.Data.MySqlClient.MySqlConnection...

       Dim conn As New MySql.Data.MySqlClient.MySqlConnection
        Dim myConnectionString As String

        myConnectionString = "server=127.0.0.1;" _
                    & "uid=root;" _
                    & "pwd=12345;" _
                    & "database=test;"

        Try
            conn.ConnectionString = myConnectionString
            conn.Open()

        Catch ex As MySql.Data.MySqlClient.MySqlException
            MessageBox.Show(ex.Message)
        End Try
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 5

Accepted Solution

by:
maralans earned 500 total points
ID: 18029715
That connection string was an example from one of the links.  You need to change the network address, userId, password and database name to connect to your mySql server.
0
 

Author Comment

by:prowebinteractive
ID: 18029741
THAT PART i KNOW, BUT THE PROGRAM WILL NOT COMPILE
0
 

Author Comment

by:prowebinteractive
ID: 18029756
am I missing a component, or some sort of driver
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question