# Database passwords with numbers

**URL:** <https://www.ruby-forum.com/t/database-passwords-with-numbers/90109>\
**Category:** Rails\
**Created:** [March 29, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/database-passwords-with-numbers/90109 "2006-03-29T19:36:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_FSWalter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@Scott\_FSWalter](https://www.ruby-forum.com/u/Scott_FSWalter)\
**Post date:** [March 29, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/database-passwords-with-numbers/90109/1 "2006-03-29T19:36:55Z")

</div>

I have database password in my database.yml as “passw0rd” however when I  
go to [http://localhost:3000/rails/info/properties](http://localhost:3000/rails/info/properties) I get this error:

private method `gsub’ called for 1:Fixnum

But if I just use “password” for my password everything is ok.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Scott\_FSWalter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@Scott\_FSWalter](https://www.ruby-forum.com/u/Scott_FSWalter)\
**Post date:** [March 29, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/database-passwords-with-numbers/90109/2 "2006-03-29T20:49:01Z")

</div>

On Wednesday, March 29, 2006, at 7:36 PM, Scott F. Walter wrote:

> I have database password in my database.yml as “passw0rd” however when I  
> go to [http://localhost:3000/rails/info/properties](http://localhost:3000/rails/info/properties) I get this error:
> 
> private method `gsub’ called for 1:Fixnum
> 
> But if I just use “password” for my password everything is ok.
> 
> Any ideas?

What database are you using? I’ve used a similar password for both  
Oracle and MySQL, and not had that problem.

–

Lori O.  
[http://blog.dragonsharp.com](http://blog.dragonsharp.com)

---

<div class="post-metadata">

**Author:** ![Scott\_FSWalter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@Scott\_FSWalter](https://www.ruby-forum.com/u/Scott_FSWalter)\
**Post date:** [April 5, 2006, 6:12pm UTC](https://www.ruby-forum.com/t/database-passwords-with-numbers/90109/3 "2006-04-05T18:12:39Z")

</div>

Lori O. \<devlists-rubyonrails@…\> writes:

> > Any ideas?
> 
> What database are you using? I’ve used a similar password for both  
> Oracle and MySQL, and not had that problem.
> 
> –
> 
> Lori O.  
> [http://blog.dragonsharp.com](http://blog.dragonsharp.com)

I got the same thing. For me, it looks like it happens when it tries to  
escape  
the HTML. I duplicated the same error message by calling gsub on a int.  
My guess  
is there’s an integer in the request data somewhere?

My Error log:

C:/InstantRails/ruby/lib/ruby/1.8/cgi.rb:362:in `escapeHTML\_fail\_on\_nil’

(Ok, it won’t let me post the rest cause it’s too long) Dumb.

---

<div class="post-metadata">

**Author:** ![Scott\_FSWalter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@Scott\_FSWalter](https://www.ruby-forum.com/u/Scott_FSWalter)\
**Post date:** [April 5, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/database-passwords-with-numbers/90109/4 "2006-04-05T20:40:50Z")

</div>

Tae Kim wrote:

> Lori O. \<devlists-rubyonrails@…\> writes:
> 
> > > Any ideas?
> > 
> > What database are you using? I’ve used a similar password for both  
> > Oracle and MySQL, and not had that problem.
> > 
> > –
> > 
> > Lori O.  
> > [http://blog.dragonsharp.com](http://blog.dragonsharp.com)
> 
> I got the same thing. For me, it looks like it happens when it tries to  
> escape  
> the HTML. I duplicated the same error message by calling gsub on a int.  
> My guess  
> is there’s an integer in the request data somewhere?
> 
> My Error log:
> 
> C:/InstantRails/ruby/lib/ruby/1.8/cgi.rb:362:in `escapeHTML\_fail\_on\_nil’
> 
> (Ok, it won’t let me post the rest cause it’s too long) Dumb.

got the same error  
I’m using mysql, with password sandra1.  
tks for your tip.
