|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
Hi
I am new to vb & mysql i need coding to connect mysql database to vb kindly explane me the coding please thanks |
|
#2
|
||||
|
||||
|
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! |
|
#3
|
|||
|
|||
|
Quote:
thanks foor your assistance i cant find ADODB in references can you help me |
|
#4
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Need help on connecting vb to mysql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|