Solved

MYSQL Problems

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
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…

830 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