Solved

need help to create connection to mysql database

Posted on 2006-11-28
6
177 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now