# InstantRails Lost connection to MySQL server

**URL:** <https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337>\
**Category:** Rails\
**Created:** [June 14, 2006, 10:55am UTC](https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337 "2006-06-14T10:55:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin-ga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc348/32.png) [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Post date:** [June 14, 2006, 10:55am UTC](https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337/1 "2006-06-14T10:55:48Z")

</div>

Hiall,

I just tried out InstantRails version 1.3a. After a virgin install and  
filling the fresh mysql db with my app schema, I tried runningthe app  
with webrick, only to see the infamous “Lost connection to mysql  
server” for every action. What is it that I’m doing wrong? I also have  
mysql 5 installed on my machine, but the service is stopped while  
experimenting with InstantRails, which ships with mysql 4.1.9

Thx for any tips!

cheers  
Martin

---

<div class="post-metadata">

**Author:** ![martin-ga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc348/32.png) [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Post date:** [June 14, 2006, 11:13am UTC](https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337/2 "2006-06-14T11:13:03Z")

</div>

Weird enough the lost connection error does not appear when I run my  
app from apache/fcgi ! However, the app feels extremely slow!!! I  
would say that every request takes about 5-10 times as long as when  
using webrick … Any ideas?

cheers  
Martin

---

<div class="post-metadata">

**Author:** ![martin-ga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc348/32.png) [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Post date:** [June 14, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337/3 "2006-06-14T17:32:25Z")

</div>

Martin,

Try installing the new MySQL/Ruby database driver and see if this solves  
your problem:

[http://www.vandomburg.net/pages/mysql-ruby-windows](http://www.vandomburg.net/pages/mysql-ruby-windows)

Curt

---

<div class="post-metadata">

**Author:** ![martin-ga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc348/32.png) [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Post date:** [June 14, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337/4 "2006-06-14T21:56:24Z")

</div>

Hi Curt,

Thx that did the trick! I have my app working on instantrails now with  
webrick and with apache. Unfortunately, when running under apache/scgi  
my app is TERRIBLY slow! Anyone any ideas why?

cheers  
Martin

---

<div class="post-metadata">

**Author:** ![martin-ga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc348/32.png) [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Post date:** [June 14, 2006, 11:30pm UTC](https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337/5 "2006-06-14T23:30:28Z")

</div>

I’m forwarding this to the Instant Rails ML – this has been reported  
before.

Curt

---

<div class="post-metadata">

**Author:** ![martin-ga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9fc348/32.png) [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Post date:** [June 15, 2006, 1:57am UTC](https://www.ruby-forum.com/t/instantrails-lost-connection-to-mysql-server/63337/6 "2006-06-15T01:57:05Z")

</div>

For what it’s worth, I’ve been running an app under Instant Rails for  
approx 2 weeks; it’s still lightning quick. It’s running under  
Mongrel though - you might want to check it out to see if it’s a  
better solution for you.

Regards

Dave M.
