?
Solved

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

Posted on 2004-10-25
4
Medium Priority
?
488 Views
Last Modified: 2013-12-03
hi, I am getting
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
 error, while tring to connect MySQL from asp.
This is the code I am using
Set oConn = Server.CreateObject("ADODB.Connection")
stroConn = "Driver={mySQL};Server=localhost;Port=3306;Option=131072;Stmt=;Database=mydb;Uid=root;Pwd="
oConn.Open stroConn
Thanks in advance
- Kani
0
Comment
Question by:str_kani
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
hendridm earned 200 total points
ID: 12400586
Try this:

stroConn = "Driver={MySQL ODBC 3.51 Driver};Server=localhost;Port=3306;Database=mydb"
0
 
LVL 12

Author Comment

by:str_kani
ID: 12400663
Thanks mate. It's ok now. Could you please tell me what was wrong there?

Thanks a lot
0
 
LVL 8

Expert Comment

by:hendridm
ID: 12400779
Sure thing, the "Driver=" setting must match an actually name of a driver on your system.  To see a list of drivers, go to 'Administrative Tools' then 'Data Sources (ODBC)' then 'Drivers' tab.  The latest MyODBC driver from mysql.com installs itself as "MySQL ODBC 3.51 Driver".  Simple putting "Driver={mysql}" did not work because you apparently don't have a driver installed named 'mysql'.

Cheers,
Daniel
0
 

Expert Comment

by:helpdeskmckinstry
ID: 38816477
This is years later but this solved my problem. Fantastic!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
There is a wide range of advantages associated with the use of ASP.NET. This is why this programming framework is used to create excellent enterprise-class websites, technologies, and web applications.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question