Solved

MYSQL Problems

Posted on 2009-07-10
2
847 Views
Last Modified: 2013-11-25
I have a production package that is using MySQL as it's database server. Randomly throughout the day, we are experiencing problems. The stated error is as follows:

mysql.data.mysqlclient mysqlexception: reading from the stream has failed -> System.IO.IOException: a connection was forcibly closed by the remote host.

I looked on the MySQL suport forums and noticed that this can be caused when something exceeds the maximum allowable packet size. I pushed the packet size in the mysql config file up to one gig, and we still have this error.

I should also mention that the software is C#, we are using the mysql C# connector, and the issue seems to be random, but crops up regularly.

See the attached jpg for details.
mysqlerror.JPG
0
Comment
Question by:BakWoodz99
2 Comments
 
LVL 22

Accepted Solution

by:
NovaDenizen earned 500 total points
ID: 24839469
Make sure you increase the max packet size on both the server and the client side.
0
 

Author Closing Comment

by:BakWoodz99
ID: 31602123
It also turns out that switching off connection pooling altogether solved several issues for us. The C# MySQL connector just seems a little buggy.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Online collaboration can help businesses be more efficient, help employees grow their skills and foster a team environment.
Creating and Managing Databases with phpMyAdmin in cPanel.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now