# Multiple rails versions + mysql error

**URL:** <https://www.ruby-forum.com/t/multiple-rails-versions-mysql-error/89772>\
**Category:** Rails\
**Created:** [March 22, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/multiple-rails-versions-mysql-error/89772 "2007-03-22T17:52:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magic\_hat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5daacb/32.png) [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Post date:** [March 22, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/multiple-rails-versions-mysql-error/89772/1 "2007-03-22T17:52:04Z")

</div>

I’m running rails 1.2.2 and mysql 5 on my linux server.

I recently had to install the rails 1.1.6 gem to run an app that  
requires it, and now I’m getting “Mysql::Error: Lost connection to  
MySQL server during query” on most urls in the app. The app was  
hitting the database with no problem s when I ran it using rails  
1.2.2, and i’m using an identical database.yml, so I know the login  
credentials are valid.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![magic\_hat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5daacb/32.png) [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Post date:** [March 22, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/multiple-rails-versions-mysql-error/89772/2 "2007-03-22T18:00:20Z")

</div>

On 22 Mar 2007, at 17:47, magic\_hat wrote:

> I’m running rails 1.2.2 and mysql 5 on my linux server.
> 
> I recently had to install the rails 1.1.6 gem to run an app that  
> requires it, and now I’m getting “Mysql::Error: Lost connection to  
> MySQL server during query” on most urls in the app. The app was  
> hitting the database with no problem s when I ran it using rails  
> 1.2.2, and i’m using an identical database.yml, so I know the login  
> credentials are valid.

You’d been better off just putting Rails 1.1.6 in the vendor folder  
instead of installing the two gems.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![magic\_hat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5daacb/32.png) [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Post date:** [March 22, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/multiple-rails-versions-mysql-error/89772/3 "2007-03-22T18:32:34Z")

</div>

I’ve got 1.1.6 running in the vendor folder now, and I’m still getting  
the lost connection error.
