If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
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, 11: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 12:43.
Reply With Quote
  #2 (permalink)  
Old 11-14-07, 03:40
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 770
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, 05: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, 10: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, 19: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.
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On