SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 20th, 2003, 09:52 AM
baddogg99 baddogg99 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: GA, USA
Posts: 19 baddogg99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Problems connecting to mySQL

Can anyone help me?

I have 2 servers. One is unix running php and mysql. The other is windows and asp.

I want to have an asp script that queries the mysql server.

Using the tutorial from this site, I am trying to use a connection string to connect to the mysql server. Here is my code:

<%
dim adoConn

set adoConn = Server.CreateObject("ADODB.Connection")

adoConn.Open "Driver={mySQL}; Server=xxx.xxx.xxx.xxx; Port=3306; Option=0; Socket=; Stmt=; Database=xxxxxx; Uid=xxxxxx; Pwd=xxxxx;"

if adoConn.errors.count = 0 then

response.write "Connected Successfully!"

end if
%>

This fails with the error:

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Why am I getting an error about ODBC Drivers and Data Source names when I am trying to use a connection string?

Please help?!

Thanks,
B

Reply With Quote
  #2  
Old October 20th, 2003, 04:13 PM
rdoekes rdoekes is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Strasbourg, France
Posts: 181 rdoekes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 7
Send a message via AIM to rdoekes Send a message via Yahoo to rdoekes
Did you download and install MyOLEDB http://www.mysql.com/downloads

Afterwards you can use:
oConn.Open "Provider=MySQLProv.2.5; Server=xxx; Database=xxxx;uid=;pwd=;port=3306"
__________________
- Rogier Doekes

Reply With Quote
  #3  
Old November 16th, 2003, 09:24 AM
rims rims is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 rims User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
try being more specific with driver:

adoConn.Open "Driver={MySQL ODBC 3.51 Driver}; Server=xxx.xxx.xxx.xxx; Port=3306; Option=0; Socket=; Stmt=; Database=xxxxxx; Uid=xxxxxx; Pwd=xxxxx;"

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Problems connecting to mySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway