Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
Mysql with VB
View previous topic :: View next topic  
Author Message
formula
Newbie


Joined: 10 Jan 2005
Posts: 3

PostPosted: Jan 11th, 2005 04:32 PM    Post subject: Mysql with VB Reply with quote

Hello,

I am doing my first steps with vb.
I try to connect to mysql db.

But with the data controler I have only option to connect to access or dbase, but not ODBC. How can I connect to ODBC?

Thanks,
formula
Back to top
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Jan 14th, 2005 06:16 PM    Post subject: Reply with quote

You will need to download the ODBC connector from the website of mysql.
_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
TriSight
Regular


Joined: 12 Oct 2004
Posts: 69
Location: Mobile, AL

PostPosted: Jan 18th, 2005 02:47 PM    Post subject: Reply with quote

There is actually a better way to connect to mySQL databases and that's using the DLL that comes with mySQL. If you want a reference, I wrote a query analyzer for mySQL that uses the DLL (thanks to a wrapper written by another programmer). If you wanna take a look at it you can get the code here:

[link]
_________________
/=--_The Nomad_--=\
"Men of lofty genius when they are doing the least work are most active. " - Leonardo da Vinci
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
formula
Newbie


Joined: 10 Jan 2005
Posts: 3

PostPosted: Jan 18th, 2005 05:39 PM    Post subject: Reply with quote

I downloaded that, and I get an error in this line:
mlMYSQL = mysql_init(mlMYSQL)
Back to top
View user's profile Send private message
TriSight
Regular


Joined: 12 Oct 2004
Posts: 69
Location: Mobile, AL

PostPosted: Jan 19th, 2005 08:35 AM    Post subject: Reply with quote

What error are you getting? Also, keep in mind that I made it so that you can pass the login information into the exe.. so you will need to go into the Project->Properties and click on the Compile tab and remove the login information from the Command Line Arguments.. that's probably the issue you are having.
_________________
/=--_The Nomad_--=\
"Men of lofty genius when they are doing the least work are most active. " - Leonardo da Vinci
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic