Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > MySQL > Data source name not found and no default driver specified

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-12-07, 12:54
jacksonxyz jacksonxyz is offline
Registered User
 
Join Date: Nov 2007
Posts: 2
Data source name not found and no default driver specified

i am able to connect to MySQL database on the server from my ASP.NET application on the server.. i am using the following connection string..
Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=mydbname;uid=myu sername;pwd=mypassword;option=3
where
mydbname is the name of the database i created using the control panel
myusername is the username and
mypassword is the password which i provided when i created the database

but i am not able to connect to the database on the server when i run the application in my machine.. i tried the following connection string..
Driver={MySQL ODBC 3.51 Driver};Server=mydomainname;Database=mydbname;uid= myusername;pwd=mypassword;option=3
where
mydomainname is the domain name (eg: google.com)

i am getting the following error

Data source name not found and no default driver specified at System.Data.Odbc.OdbcConnection.Open()

is it cos i dont have MySQL driver in my machine???

Last edited by jacksonxyz : 11-12-07 at 13:43.
Reply With Quote
  #2 (permalink)  
Old 11-14-07, 04:40
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 734
Take a look at http://www.mysql.com/products/connector/net/.
As you are using ASP.net you are developing on a windows machine (unless you've managed to get ASP.net to run on linux ) you will need to install the MySQL connection driver before you can utilise it.
Reply With Quote
  #3 (permalink)  
Old 11-14-07, 06:39
jacksonxyz jacksonxyz is offline
Registered User
 
Join Date: Nov 2007
Posts: 2
yes i am running the application in windows.. but do i need to install MySQL driver 3.51? the database is not in my system.. its on the server..
Reply With Quote
  #4 (permalink)  
Old 11-14-07, 11:27
ortho ortho is offline
Registered User
 
Join Date: Nov 2006
Location: Quebec
Posts: 172
Then you gonna have to install the connectors only I guess
__________________
Less is more.
How long is now?
http://www.lesouterrain.com
Reply With Quote
  #5 (permalink)  
Old 11-17-07, 20:42
HackmanC HackmanC is offline
Registered User
 
Join Date: Jul 2006
Posts: 8
Quote:
Originally Posted by jacksonxyz
yes i am running the application in windows.. but do i need to install MySQL driver 3.51? the database is not in my system.. its on the server..

You need to install MySQL ODBC Driver on each machine you are going to use the .NET application, even the development pc.
__________________
Good Luck
HackmanC
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On