Environment: Windows 2008 R2 & ASP.Net 4.0
Connector/Net 6.6.4 from here
NOTE: I selected the “.Net / Mono” platform and downloaded the architecture-independent version. Enable-32-bit-application-in-IIS is not an option for me.
I try to connect the mySQL database via the following connection string.
Server=192.168.1.200;Port=3306;Database=gm_log;Uid=cf2;Pwd=123456;Charset=utf8;AllowUserVariables=True;Allow Zero Datetime=false;PersistSecurityInfo=false;Pooling=true;ConnectionLifeTime=0;Max Pool Size=100;Min Pool Size=1;
And MySqlConnection.Open throw an OverflowException. Arithmetic operation resulted in an overflow
Here is the stack trace.
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.HandleAuthChange(MySqlPacket packet)
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
at MySql.Data.MySqlClient.MySqlPool..ctor(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPoolManager.GetPool(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlConnection.Open()
Anyone else encounter the same issue?
Downgraded to previous version from here:
http://dev.mysql.com/downloads/connector/net/6.5.html#downloads
It now works for me.