# Remote database connection disconnecting after certain amoun

**URL:** <https://www.ruby-forum.com/t/remote-database-connection-disconnecting-after-certain-amoun/106489>\
**Category:** Rails\
**Created:** [June 11, 2007, 8:32am UTC](https://www.ruby-forum.com/t/remote-database-connection-disconnecting-after-certain-amoun/106489 "2007-06-11T08:32:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [June 11, 2007, 8:32am UTC](https://www.ruby-forum.com/t/remote-database-connection-disconnecting-after-certain-amoun/106489/1 "2007-06-11T08:32:33Z")

</div>

I have a server running Merb connecting to a remote database using  
“establish\_connection.”

When I call many methods in fast succession, I eventually get this Mysql  
error:

Mysql::Error: Lost connection to MySQL server during query.

I have the ruby mysql bindings installed, as well.

Im thinking that its a problem with the database configurations. But its  
hard to say its a timeout issue because this error will happen within  
the first hour of my Merb app establishing the connection.

Any thoughts?
