MySqlTalk.com  

Go Back   MySqlTalk.com > Programming Languages and MySQL > ASP
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread
Old 09-06-2004, 10:28 PM   #1
wayner
Junior Member
 
Join Date: Sep 2004
Posts: 2 wayner is on a distinguished road
ODBC Connection Failure

Hi All

I have installed mysql-4.1.4-gamma-win on a win2k pro pc and a win2k server both of which are used for development and testing. SQl Server 2000 is installed on the server and is in use at the moment. I have had a few minor problems which I have worked through ok. I have copied a database with data from MSSQL to MySQL on both pcs.

My problem is that an ASP page run on the server will not connect. The error is "Data source name not found and no default driver specified". I have tried DSN and DSN-less connects. When I tested the DSN definition it connected fine on both pcs. The same ASP page works perfectly from the win2k pro pc, connecting to either the database locally or remotely on the server. In fact the page run on the pc from the server works great. I have had the above error before, usually when I have not setup a DSN definition or have mis-spelled the name. Connecting still works fine to the MSSQL server so I don't think it's something general with ODBC.

The only other server I could try this on is the production web server which I am reluctant to do in case I have done something to ODBC connections in general.

I have spent 2 days now "searching the web" for a solution to this problem so any bone anyone can throw me would be greatly appreciated. Thanks Wayne.
wayner is offline   Fork this post Reply With Quote
Old 09-09-2004, 10:54 PM   #2
wayner
Junior Member
 
Join Date: Sep 2004
Posts: 2 wayner is on a distinguished road
Some more info

I've just been able to try a connection from visual basic on the server.

I used this connection string which will not work from ASP.
"Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Database=Logging; UID=root; PWD=rootpw; Option=3"

Which leads me to think that I have got something wrong for the IIS user for MySQL

Any thoughts?
wayner is offline   Fork this post Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access pass through query - ODBC error Snowsride SQL syntax 0 12-22-2004 10:04 AM
Can't connect localhost with network connection? budbjames General 1 11-09-2004 10:35 AM



All times are GMT -4. The time now is 01:32 PM.



Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Google
  Web http://www.mysqltalk.com
DISCLAIMERS:
1. We have no commercial interest in this site.
Banner Ads and Subscriptions will only be used to help pay for hosting and maintenance costs.
2. MySQLTalk.com is NOT affiliated with MySQL AB in any way.
3. MySQLTalk.com is NOT endorsed by MySQL AB in any way.
4. Please do not post any content that is harmful to MySQL or MySQL AB, meaning no misleading or obsolete information will be tolerated.
Well-founded constructive criticism meant to help the community is permitted.
5. This website is founded with the goal of improving the MySQL community.
We not only tolerate newbies, we encourage them.
Please do not ask newbies to "read the manual".