MissouriTiger
Programmer
DETAILS:
VB6 program running on Win2000 client in Missouri, US. Trying to connect to mySQL DB running on Unix server in Canada, via ADO. (See further details below.)
I have read everything available here on Tek-tips, plus books, and several web articles, plus mySQL documentation, but these various sources disagree widely on which fields need to be included in my connection string. I have tried many, many combinations, but nothing works. I just cannot get this connection to work. I obviously fail to understand some fundamental thing about these connections. WOULD SOMEBODY PLEASE CLARIFY THIS FOR ME?
DB DETAILS:
Location: Server Name: kane.phpwebhosting.com
DB Version: MySQL 4.0.18 - "standard running on -
localhost as gregnorris@localhost"
Port: 3306
DB Name: gregnorris
Username: gregnorris
Password: ABC 'not the real pasword
(The name of my DB is the same as my username, which is also the same as my domain.)
Various articles conflict a great deal regarding which fields need to be in the connection String. Plus all of them are generic, with junk like this "Provider=myProv; DataSource=myDataSource". What kind of help is that???
Here is the conneciton string I'm currently trying:
strConn = "DRIVER={MySQL ODBC 4.0.18 Driver};" & _
"SERVER= & _
"Port=3306;" & _
"DATABASE=gregnorris;" & _
"UID=gregnorris;" & _
"PWD=winner;"
I get the following error message:
"[MICROSOFT][ODBC Driver Manager]Data source name not found and no default driver specified."
Other connection string configurations I've tried have included fields such as "RemoteProvider", "Provider",
"DataSource", "remoteServer", "UserID", etc, but nothing has worked.
Based on the details above, could someone please put together the right connection string for me (except for the proper password)?
_______________________________________
constructed from 100% recycled electrons
VB6 program running on Win2000 client in Missouri, US. Trying to connect to mySQL DB running on Unix server in Canada, via ADO. (See further details below.)
I have read everything available here on Tek-tips, plus books, and several web articles, plus mySQL documentation, but these various sources disagree widely on which fields need to be included in my connection string. I have tried many, many combinations, but nothing works. I just cannot get this connection to work. I obviously fail to understand some fundamental thing about these connections. WOULD SOMEBODY PLEASE CLARIFY THIS FOR ME?
DB DETAILS:
Location: Server Name: kane.phpwebhosting.com
DB Version: MySQL 4.0.18 - "standard running on -
localhost as gregnorris@localhost"
Port: 3306
DB Name: gregnorris
Username: gregnorris
Password: ABC 'not the real pasword
(The name of my DB is the same as my username, which is also the same as my domain.)
Various articles conflict a great deal regarding which fields need to be in the connection String. Plus all of them are generic, with junk like this "Provider=myProv; DataSource=myDataSource". What kind of help is that???
Here is the conneciton string I'm currently trying:
strConn = "DRIVER={MySQL ODBC 4.0.18 Driver};" & _
"SERVER= & _
"Port=3306;" & _
"DATABASE=gregnorris;" & _
"UID=gregnorris;" & _
"PWD=winner;"
I get the following error message:
"[MICROSOFT][ODBC Driver Manager]Data source name not found and no default driver specified."
Other connection string configurations I've tried have included fields such as "RemoteProvider", "Provider",
"DataSource", "remoteServer", "UserID", etc, but nothing has worked.
Based on the details above, could someone please put together the right connection string for me (except for the proper password)?
_______________________________________
constructed from 100% recycled electrons