Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 31st, 2003, 04:25 AM
bary bary is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 15 bary User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 52 sec
Reputation Power: 0
Question Need help on connecting vb to mysql

Hi

I am new to vb & mysql
i need coding to connect mysql database to vb
kindly explane me the coding please

thanks

Reply With Quote
  #2  
Old July 31st, 2003, 06:58 AM
shafan's Avatar
shafan shafan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 123 shafan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 51 sec
Reputation Power: 6
First learn about ADO.
Set a reference to ADODB in your VB project
Create a Connection object and set it's ConnectionString to something like "DRIVER={MySQL ODBC 3.51 Driver};DESC=;" & _
"DATABASE=mfg;SERVER=192.168.100.20;" & _
"UID=UserName;PASSWORD=PassWord;PORT=;OPTION=0;STMT=;"

Download and install the ODBC driver for MySQL from the website.

Once connected to the database work with it as you would with any other database (doesn't support Transactions yet...)

Good Luck!

Reply With Quote
  #3  
Old July 31st, 2003, 10:38 PM
bary bary is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 15 bary User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 52 sec
Reputation Power: 0
Quote:
Originally posted by shafan
First learn about ADO.
Set a reference to ADODB in your VB project
Create a Connection object and set it's ConnectionString to something like "DRIVER={MySQL ODBC 3.51 Driver};DESC=;" & _
"DATABASE=mfg;SERVER=192.168.100.20;" & _
"UID=UserName;PASSWORD=PassWord;PORT=;OPTION=0;STMT=;"

Download and install the ODBC driver for MySQL from the website.

Once connected to the database work with it as you would with any other database (doesn't support Transactions yet...)

Good Luck!


thanks foor your assistance

i cant find ADODB in references

can you help me

Reply With Quote
  #4  
Old August 1st, 2003, 09:23 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,834 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 23 h 30 m 30 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Look for Microsoft ActiveX Data Objects 2.x Library

ADO = ActiveX Data Objects

Also, please do not double post, I have deleted your doubled thread, but in the future please delete a thread if you create two like this. I would also suggest that you search this forum for connections to mysql and you read the "How to Post a Question" sticky at the top of this forum for more information on how to post a question.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Need help on connecting vb to mysql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway