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 January 8th, 2003, 03:09 PM
condealmasy condealmasy is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 4 condealmasy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem Connecting MySql Through ASP

Problem Connecting MySql Through ASP


I installed the MYSQL ODBC 3.51 and I've used my Mysql database with Visual Basic programming for quite some time now, and it works great.

But now I have to develop a webpage in ASP.

There seems to be a problem with the connection string:

connection.Open "PROVIDER=MSDASQL;driver={MySQL ODBC 3.51 Driver};server=localhost;uid=user;pwd=password;dat
abase=mydb;"

The thing is that this String has worked once or twice and most of the time it doesn't, while the DSN and the database connection in Visual Basic always works.

I have never changed the string, I've used other strings, like the one I read in the whole "Using MyODBC To Access Your MySQL Database Via ASP" article By: Annette Tennison, but still it gives me this error:

Can't find the database source or didn't specify the default driver

I thought that maybe the application "WinMySqladmin Ver 1.4" that comes with the Mysql installation waas the problem, but the problem happens WITH the application running and WITHOUT it.

Many people respond telling me to check the connection string, or maybe create a system dsn and connect directly, but I have done that already 1000 times, and the code is right, I believe there is a configuration problem with my IIS or the Mysql ODBC.


Any ideas???

Reply With Quote
  #2  
Old January 14th, 2003, 04:05 PM
UnSkiLd UnSkiLd is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 4 UnSkiLd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sorry I tried to find help for it, but im thinking its an account issue rather than code and what not. try setting up an account for the user your trying to log in as in your mysql database, as well as windows account. I had to do this with my Windows 2000 and XP box with IIS 5 running also i was using ASP.Net. For some reason the web page would try to log in as ASPNET. So i had to set up an account using ASPNET as the username..not sure why or if that was really the problem, but it did work after i did it.

Sorry i couldnt say more on this. gl


Actually now that I look at it, it wont be an account error..my bad. It helps if I actually READ your post before i reply

anywho, is that your exact connection string you're using? If so there's a semi-colon on the Database variable that could cause an error. And it does make things alot easier having a DSN for this.things im sure you already know..ok im still looking. if you find a fix let me know.ill add it to my list of 'Things that are 'fixes' List'


Last edited by UnSkiLd : January 14th, 2003 at 04:11 PM.

Reply With Quote
  #3  
Old January 17th, 2003, 02:26 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
There's quite a few threads on or similar to this topic - do a search first - you might find the answer in one of them.

Last edited by stumpy : January 17th, 2003 at 02:31 AM.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Problem Connecting MySql Through ASP


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