| Author |
Thread |
| Error while running script |
|
Posted in tutorial: Accessing MySQL Database with ASP.NET |
· emarciniak
Joined: 30 Jul 2003 Total Posts: 2 |
Error while running script Posted: 30 Jul 2003
Hi, I am getting error while running displaynames.aspx. The error is : System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified .... Stack Trace: [OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified] System.Data.Odbc.OdbcConnection.Open() +638 ASP.displaynames_aspx.OnInit(EventArgs e) +101 System.Web.UI.Control.InitRecursive(Control namingContainer) +241 System.Web.UI.Page.ProcessRequestMain() +174 Please advise, Thank you, Emanuel
|
· emarciniak
Joined: 30 Jul 2003 Total Posts: 2 |
Error while running script Posted: 30 Jul 2003
Found it..!! downloaded MySQL driver and installed - .. works fine emanuel
|
· xselcer
Joined: 29 Oct 2003 Total Posts: 1 |
Re: Error while running script Posted: 29 Oct 2003
I am getting the same error. I downloaded the MySqlCS driver and installed it but I'm getting the same error. Any thoughts?
|
· mail
Joined: 8 Dec 2004 Total Posts: 1 |
Re: Error while running script Posted: 8 Dec 2004
I resolved the same problem when I made both (user and system dsn)
|
· md_ismail_mysql
Joined: 4 Jan 2005 Total Posts: 1 |
MySql Driver Posted: 4 Jan 2005
Hi Emanuel,
Thank you very much for the help. I had the same problem, I downloaded MySQL Driver and it worked very well. The source of MySQL Driver is as follows. http://mysql.netvisao.pt/downloads/connector/odbc/3.51.html
Cheers,
Ismail
|
· inheritance77
Joined: 27 Oct 2005 Total Posts: 1 |
problem slove Posted: 27 Oct 2005
hi Emanuel and Ismail,
thanks a lot...it solve my problelm too..:)
|
· xman71
Joined: 2 Nov 2005 Total Posts: 2 |
Pb using MySQL ODBC data connection Posted: 2 Nov 2005
Hi,
I was wondering what solution you came up with to be able to connect to the MySQL datasource. I built reports using Report Designer module in Visual Studio .NET 2003, I am able to preview the data and all, but when I deploy those reports and run them, I get the error message:
... ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
The MySQL ODBC connection is a system DSN, using the 3.51 driver: I have tested it and it works fine in other development environment such as Access 2000.
I am wondering if I am missing something in building the connection string on the data source in Report Designer.
I appreciate any help you can give...
Daniel.
|
· ppostma1
Joined: 2 Feb 2006 Total Posts: 1 |
solved the problem Posted: 2 Feb 2006
Under 'Administrative Tools' in the 'Control Panel' Open the 'Data Sources ODBC' click on the 'Drivers' tab, 'MySQL ODBC 3.51 Driver' should be listed toward the bottom. If it is not, the driver has not been installed yet!
You actually need all three drivers to do it. 1. Microsoft MDAC 2.8 (the foundation classes) 2. ODBC .NET Data Provider 3. MySQL ODBC 3.51 Driver
You can get the MySQL driver from: http://dev.mysql.com/downloads/connector/odbc/3.51.html
The connection strings can be found at: http://www.connectionstrings.com Click on MySQL or the one you want.
DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=myDatabase;USER=myUsername;PASSWORD=myPassword;OPTION=3;"
I don't know what 'OPTION=3' stands for, and it may be case sensitive, I haven't tried.
Peter
|
· xaxdrax
Joined: 10 Apr 2006 Total Posts: 1 |
xman71 Posted: 10 Apr 2006
Hi, Just Edit the connectionstring on your webconfig file (Provided Below) on your project, then rebuild the project ---------------------------------------------
MyODBC 3.51 Local database:
"DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=myDatabase;USER=myUsername;PASSWORD=myPassword;OPTION=3;"
MyODBC 3.51 Remote database:
"DRIVER={MySQL ODBC 3.51 Driver};SERVER=data.domain.com;PORT=3306;DATABASE=myDatabase; USER=myUsername;PASSWORD=myPassword;OPTION=3;"
|
· snehaliteng
Joined: 4 Aug 2009 Total Posts: 1 |
hi Posted: 4 Aug 2009
just make OPTION=1; instead of OPTION=3;
110010110101010101011010111010001011001
|