# Password in development environnement

**URL:** <https://www.ruby-forum.com/t/password-in-development-environnement/89342>\
**Category:** Rails\
**Created:** [March 19, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/password-in-development-environnement/89342 "2007-03-19T18:02:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 19, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/password-in-development-environnement/89342/1 "2007-03-19T18:02:29Z")

</div>

Hi Everyone,

I noticed a strange behavior from Rails, When there’s password in the  
development environnement Rails give me this error

\<\<Mysql::Error: Lost connection to MySQL server during query: SHOW  
FIELDS FROM comics\>\>

When I removed the password everything works.

Here’s my database.yml

development:  
adapter: mysql  
database: comics\_catalog\_dev  
username: admin\_comic  
password: comic  
host: localhost

So when I have the configuration shown below, It is working.

development:  
adapter: mysql  
database: comics\_catalog\_dev  
username: admin\_comic  
password:  
host: localhost

Have someone ever experience this kinda problem?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 19, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/password-in-development-environnement/89342/2 "2007-03-19T18:10:32Z")

</div>

Le 19 mars 07 à 17:56, removed\_email\_address@domain.invalid a écrit :

> Hi Everyone,
> 
> I noticed a strange behavior from Rails, When there’s password in the  
> development environnement Rails give me this error
> 
> \<\<Mysql::Error: Lost connection to MySQL server during query: SHOW  
> FIELDS FROM comics\>\>

You’re maybe using MySQL 4.1 and there’s problem with the password  
hashing.

## Take a look at [Mike Krisher](http://www.mikekrisher.com/?p=386)

Nicolas C.

> **[Bounga’s Home](https://www.bounga.org/)**
>
> Thoughts about Ruby, Rails, Hanami, Elixir, Phoenix, Javascript and Unix.

> **[Nicolas Cavigneaux Resume](https://www.cavigneaux.net/)**
>
> Nicolas Cavigneaux Resume

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 19, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/password-in-development-environnement/89342/3 "2007-03-19T18:18:33Z")

</div>

Yes I’m using MySql 4.1

So I just need to upgrade to a newer version.

Thank you.
