Search the web
Sign In
New User? Sign Up
asp-FAQ · Active Server Pages - FAQ
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
connect to mysql   Message List  
Reply | Forward Message #8 of 19 |
I have a mySQL db setup, which can be connected to through IIS
(testing the data source through a DSN). I can also connect to the
db through SQLyog (GUI interface for the mySQL db).

However, I cannot connect to the db via an ASP page. I've tried
numerous connection strings, along with trying to connect with a DSN -
all unsuccessfully.

The ASP pages reside on a Win2k box and the db is on a linux box.
The fact that I can connect to it shows that I *should* be able to
hit the db from within the ASP page. Any help would be appreciated.

Some connect strings I'm trying...

'this is the simplest way to make the connection and it *should* work
rather easily 'adoConn.Open "DSN=employees.frm.dsn"

' from damian
'adoConn.Open "driver={mysql};
database=company_phone_listing;server=192.168.1.3;uid=hr;pwd=hr;option
=1
6386;"

' oledb provider for mySQL
'adoConn.Open "Provider=MySQLProv;" & _
' "Data Source=company_phone_listing;" & _
' "User Id=hr;" & _
' "Password=hr"

' from able consulting
'adoConn.Open "Driver={mySQL};" & _
' "Server=192.168.1.3;" & _
' "Port=3306;" & _
' "Option=131072;" & _
' "Stmt=;" & _
' "Database=company_phone_listing;" & _
' "Uid=hr;" & _
' "Pwd=hr"

' from connectionstrings.com
'adoConn.Open "Driver=
{mySQL};Server=192.168.1.3;Port=3306;Option=131072;Stmt=;Databas
e=company_phone_listing;Uid=hr;Pwd=hr;"






Mon Jun 9, 2003 2:30 pm

cirerantec
Offline Offline
Send Email Send Email

Forward
Message #8 of 19 |
Expand Messages Author Sort by Date

I have a mySQL db setup, which can be connected to through IIS (testing the data source through a DSN). I can also connect to the db through SQLyog (GUI...
cirerantec
Offline Send Email
Jun 9, 2003
3:00 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help