Description:
hi
for the past couple of days im unable to connect from our odbc connection (3.51.12) on our windows server to the linux server running mysql 5.0.27
the error is listed below if i manually create a dsn connection within windows it works fine but if its within the asp.net script it does not work, this used to work fine a few days ago, and nothings changed scriptwise! it is also fine if i connect using a admin tool?
Exception Details: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'myhometownuser'@'server88-208-194-96.live-servers.net' (using password: YES)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'myhometownuser'@'server88-208-194-96.live-servers.net' (using password: YES)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[OdbcException (0x80131937): ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'user'@'liveserver.net' (using password: YES)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'user'@'liveserver.net' (using password: YES)]
System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +35
System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle) +131
System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +98
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.Odbc.OdbcConnection.Open() +37
EcardApp.DBAccess.FillDt(String strQry) +37
EcardApp.WebForm2.Page_Load(Object sender, EventArgs e) +75
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
How to repeat:
add mysql connection string
ie. <connectionStrings>
<add name="myhometownConnectionString" connectionString="Driver={MySQL ODBC 3.51 Driver};option=16387;server=***serversip***;user=;password=user;database=myhometown"
providerName="System.Data.Odbc" />
</connectionStrings>
and error is shown
Description: hi for the past couple of days im unable to connect from our odbc connection (3.51.12) on our windows server to the linux server running mysql 5.0.27 the error is listed below if i manually create a dsn connection within windows it works fine but if its within the asp.net script it does not work, this used to work fine a few days ago, and nothings changed scriptwise! it is also fine if i connect using a admin tool? Exception Details: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'myhometownuser'@'server88-208-194-96.live-servers.net' (using password: YES) ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'myhometownuser'@'server88-208-194-96.live-servers.net' (using password: YES) Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [OdbcException (0x80131937): ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'user'@'liveserver.net' (using password: YES) ERROR [HY000] [MySQL][ODBC 3.51 Driver]Access denied for user 'user'@'liveserver.net' (using password: YES)] System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +35 System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle) +131 System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +98 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.Odbc.OdbcConnection.Open() +37 EcardApp.DBAccess.FillDt(String strQry) +37 EcardApp.WebForm2.Page_Load(Object sender, EventArgs e) +75 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 How to repeat: add mysql connection string ie. <connectionStrings> <add name="myhometownConnectionString" connectionString="Driver={MySQL ODBC 3.51 Driver};option=16387;server=***serversip***;user=;password=user;database=myhometown" providerName="System.Data.Odbc" /> </connectionStrings> and error is shown