Solved

need help to create connection to mysql database

Posted on 2006-11-28
6
175 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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