VB 6 and mySQL

disavowed00

OSNN Newbie
Joined
15 Jan 2004
Messages
7
I want to connect a mySQL database to a VB program. mySQL is running on my host machine. The problem is that I'm nt sure what to use for the server name in the connection string. I am very new at this (2 days) so I need a little help. I tried using myodbc but it just gives me an error.
Things I need to know:
1) What do I use for the server name in the connection string
2) I did not set up a password for mySQL so what do I use for the user name

3) If there is an easier way to do this then please tell me.

Also, I am using ado controls
 
1. Server name is the name of the host machine mysql is installed on (computer name).

2. You need to set a username & password using the mysql admin tool to gain access/set privliges to your database.

3. This is the simplest way I can think of!
 
as long as mysql is on your localhost machine then you can refer to it as "localhost" if you run mysql.exe (assuming you are on windows) then you need to create a database, switch to it and then create the tables you need
you will also need to add some users to it. I think there are probably some windows gui applications that you can use to set things like that up.
 
I have set priveleges and access. VB still can't find the server on my local machine. I have tried using localhost as the server name and the computer name itself. Niether works!

Thanks for the help so far, but it still doesn't work.
 
thanks for the help guys. Turns out the myodbc driver is a piece of junk. I had to download an archived version and now it works.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back