connect vb application to mysql database

Thread Solved

Join Date: Apr 2008
Posts: 84
Reputation: swapna7999 is an unknown quantity at this point 
Solved Threads: 0
swapna7999's Avatar
swapna7999 swapna7999 is offline Offline
Junior Poster in Training

connect vb application to mysql database

 
0
  #1
Apr 9th, 2008
hi
i need to connect a vb application to a mysql database which is in a remote server
plz suggest solutions
thank u very much
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: connect vb application to mysql database

 
0
  #2
Apr 9th, 2008
hope this qould help you...please see the attached file.
you need an installer ODBC driver. this app uses mysql
Attached Files
File Type: zip Water Billing & Collection System.zip (317.9 KB, 132 views)
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: connect vb application to mysql database

 
0
  #3
Apr 9th, 2008
Hi,

Try from connection string:
http://www.connstr.com/connectionstrings.aspx

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 10
Reputation: nileshsarode is an unknown quantity at this point 
Solved Threads: 2
nileshsarode nileshsarode is offline Offline
Newbie Poster

Re: connect vb application to mysql database

 
0
  #4
Apr 9th, 2008
Hello

if you are not familier to connectivity then directly use the oledb provider

Steps to create the udl file
1. create the blank notepad file ( do not entere anything and save it with mycon.udl on desktop or any other location)
2. close the notepad editor . U will find some new icon to the file currently u created
3. Double click on the mycon.udl file it will display u the same wizard as you get in the adodc control
4. Click on provider tab
5.Select Microsoft OLEDB Provider for sql server
6. Click on the next button
7. Enter the servername on which the sql server is installed
8 specify the user name and password if the sql server administrator has given to u or bydefault user name is sa and password is blank
9 select the database name

10 Click on the test button

11 click on Ok button

12 Right click on the mycon.udl file and open it with notepad

13 u will find some thing is generated
14 copy the text from provider till end

15 paste it in the vb
eg

dim con as adodb.connection

private sub form_load
con.connectionstring=[paste the copied text from provider]
con.open
your connection is ready

hope this help u
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 84
Reputation: swapna7999 is an unknown quantity at this point 
Solved Threads: 0
swapna7999's Avatar
swapna7999 swapna7999 is offline Offline
Junior Poster in Training

Re: connect vb application to mysql database

 
0
  #5
Apr 10th, 2008
thank u for ur suggessions
as im a new programmer it will be very difficut to me to understand
so plz explain in detail
i need to connect to mysql database not to sql
thank u very much
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 8
Reputation: rustyboy is an unknown quantity at this point 
Solved Threads: 1
rustyboy rustyboy is offline Offline
Newbie Poster

Re: connect vb application to mysql database

 
0
  #6
Apr 10th, 2008
Originally Posted by nileshsarode View Post
Hello

if you are not familier to connectivity then directly use the oledb provider

Steps to create the udl file
1. create the blank notepad file ( do not entere anything and save it with mycon.udl on desktop or any other location)
2. close the notepad editor . U will find some new icon to the file currently u created
3. Double click on the mycon.udl file it will display u the same wizard as you get in the adodc control
4. Click on provider tab
5.Select Microsoft OLEDB Provider for sql server
6. Click on the next button
7. Enter the servername on which the sql server is installed
8 specify the user name and password if the sql server administrator has given to u or bydefault user name is sa and password is blank
9 select the database name

10 Click on the test button

11 click on Ok button

12 Right click on the mycon.udl file and open it with notepad

13 u will find some thing is generated
14 copy the text from provider till end

15 paste it in the vb
eg

dim con as adodb.connection

private sub form_load
con.connectionstring=[paste the copied text from provider]
con.open
your connection is ready

hope this help u
thanks a lot my friend i hope to share also my ideas soon
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 8
Reputation: rustyboy is an unknown quantity at this point 
Solved Threads: 1
rustyboy rustyboy is offline Offline
Newbie Poster

Re: connect vb application to mysql database

 
0
  #7
Apr 10th, 2008
Thank you my friend.. you know this is my first time to participate in this type of forum..since i think all members are active..please do consider me as one of your students... i do hope to with my little knowledge i can help you soon.

i didnt open yet your sample but thanks...bro
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 8
Reputation: rustyboy is an unknown quantity at this point 
Solved Threads: 1
rustyboy rustyboy is offline Offline
Newbie Poster

Re: connect vb application to mysql database

 
0
  #8
Apr 10th, 2008
Thank you my friend.. you know this is my first time to participate in this type of forum..since i think all members are active..please do consider me as one of your students... i do hope to with my little knowledge i can help you soon.

i didnt open yet your sample but thanks...bro

bro have you included the dbase and the password if ever there is?
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 6
Reputation: ramso is an unknown quantity at this point 
Solved Threads: 0
ramso ramso is offline Offline
Newbie Poster

Re: connect vb application to mysql database

 
0
  #9
May 21st, 2008
I design a vb code + froms then i fail to connect with mysql database
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 84
Reputation: swapna7999 is an unknown quantity at this point 
Solved Threads: 0
swapna7999's Avatar
swapna7999 swapna7999 is offline Offline
Junior Poster in Training

Re: connect vb application to mysql database

 
0
  #10
May 21st, 2008
Originally Posted by ramso View Post
I design a vb code + froms then i fail to connect with mysql database
r u trying to connect to the localhost or to a remote server
i know how to connect to the localhost
but when i tried to connect it to the remote server its not working and i finally found that

by default accessing mysql on the remote server is not allowed
we can change it but it was also not working

if u just want to know abt localhost may be i can help u
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC