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 March 10th, 2003, 05:56 PM
Test Test is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 6 Test User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Asp and MySql connection

I am a web developer, using Asp and MySql for a project.
I have tried to setup a DSN but couldn't find the provider for mysql connection, hence could not able to setup it.
Also I have tried
<%
strConnection = "driver={MySQL};server=localhost;uid=;"
strConnection = strConnection & "PASSWORD=;database=databaseName"
Set adoDataConn = Server.CreateObject("ADODB.Connection")
adoDataConn.Open strConnection
%>

but it is giving me error as
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

would anybody help me please? I am getting late for this project.
Is there any way from which I can download the provider for Mysql connection via Asp? or another solution you would like to suggest? please I would be thankfull to .....

Reply With Quote
  #2  
Old March 11th, 2003, 02:25 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
You need to download the driver from the mysql site first.

Reply With Quote
  #3  
Old March 21st, 2003, 05:21 AM
jerryworm jerryworm is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Kuala Lumpur,Malaysia
Posts: 4 jerryworm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, maybe I'm too late for this reply,but anyway this is what I normally do....

1. set up a system dsn name using the Data Sources (ODBC), for example: MySQLCon

2. connect to the database in asp like this:

<%
Dim Con, RS, SQL
Set Con= Server.CreateObject("ADODB.Connection")
Con.Open "DSN=MySQLCon"
SQL = "SELECT .........."
%>


Reply With Quote
  #4  
Old April 27th, 2005, 11:19 PM
FX500A FX500A is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Viet Nam
Posts: 4 FX500A User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m
Reputation Power: 0
Send a message via Yahoo to FX500A
You shoukd download Snitz Forums (http://forum.snitz.com) to research

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Asp and MySql connection


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 4 hosted by Hostway