c# - Fatal error causing timeout -mysql -
mysql.data.mysqlclient.mysqlexception: fatal error encountered during command execution. ---> mysql.data.mysqlclient.mysqlexception: timeout expired. timeout period elapsed prior completion of operation or server not responding. @ mysql.data.mysqlclient.mysqldatareader.nextresult() @ mysql.data.mysqlclient.mysqlcommand.executereader(commandbehavior behavior) --- end of inner exception stack trace
what error mean? have max connection pool =200 in connection string? app web app in .net connecting mysql db.
connection pooling isn't answer problem. connection pooling allows multiple connections made server , recycled avoid having reestablish connection. establishing , reestablishing connections can expensive in time , computing resources.
what you're looking increase command timeout. can done 1 of 2 ways. either in connection string specifying default command timeout or assigning value commandtimeout property on mysqlcommand
.
Comments
Post a Comment