Solved

MYSQL Problems

Posted on 2009-07-10
2
848 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Communication between departments might not happen in two different languages, but they do exist in two different worlds. With different targets and performance goals the same phrase often means something completely different to each party. Learn ho…
Online collaboration can help businesses be more efficient, help employees grow their skills and foster a team environment.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

27 Experts available now in Live!

Get 1:1 Help Now