# From Development to production, Error

**URL:** <https://www.ruby-forum.com/t/from-development-to-production-error/125896>\
**Category:** Rails\
**Created:** [January 13, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/from-development-to-production-error/125896 "2008-01-13T14:58:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [January 13, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/from-development-to-production-error/125896/1 "2008-01-13T14:58:54Z")

</div>

Hi you all,

I have an app working correctly in Development mode.

For changing to Production I have:

- Copied database schema and data from myapp\_development database to  
myapp\_production database.
- Executed the script/server with “–environment=production”.

And when accesing the app I get this error:

Mysql::Error in BugsController#index  
#28000Access denied for user ‘root’@‘localhost’ (using password: YES)

Why I get this error? In fact, when accesing to [http://localhost:3000/](http://localhost:3000/),  
when click on “About your application’s environment”, I get:

Routing Error  
no route found to match “/rails/info/properties” with {:method=\>:get}

suggestions? ☹

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [January 13, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/from-development-to-production-error/125896/2 "2008-01-13T17:07:00Z")

</div>

On 13 Jan 2008, at 13:58, Damaris F. wrote:

> And when accesing the app I get this error:
> 
> Mysql::Error in BugsController#index  
> #28000Access denied for user ‘root’@‘localhost’ (using password: YES)
> 
> Why I get this error?  
> Because your production server has a different password for the root  
> mysql user? (Perhaps you’re not even supposed to be using the root  
> user, I certainly wouldn’t).

Fred

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [January 13, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/from-development-to-production-error/125896/3 "2008-01-13T17:37:44Z")

</div>

No… it’s the same server, with the tree database there (test,  
development, production)… The database.yaml is also correct.

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [January 14, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/from-development-to-production-error/125896/4 "2008-01-14T12:36:27Z")

</div>

I feel idiot. Yeah, I mistyped the pwd for the production database ☹  
However, when accesing to [http://localhost:3000/](http://localhost:3000/),  
when click on “About your application’s environment”, I get:

“The page you were looking for doesn’t exist.  
You may have mistyped the address or the page may have moved.”

I don’t care, cause I’m gonna make my own index page, but I wonder what  
the problem is.

Damaris F. wrote:

> No… it’s the same server, with the tree database there (test,  
> development, production)… The database.yaml is also correct.

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [January 14, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/from-development-to-production-error/125896/5 "2008-01-14T15:39:20Z")

</div>

Um, ok, thanks 🙂

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [January 14, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/from-development-to-production-error/125896/6 "2008-01-14T12:43:11Z")

</div>

On Jan 14, 2008, at 12:36 PM, Damaris F. wrote:

> I feel idiot. Yeah, I mistyped the pwd for the production database ☹  
> However, when accesing to [http://localhost:3000/](http://localhost:3000/),  
> when click on “About your application’s environment”, I get:
> 
> “The page you were looking for doesn’t exist.  
> You may have mistyped the address or the page may have moved.”
> 
> I don’t care, cause I’m gonna make my own index page, but I wonder  
> what  
> the problem is.

It may be related to this:

```
 http://dev.rubyonrails.org/ticket/8349

```

That patch is a bit old, I have not checked whether it still can be  
applied cleanly.

– fxn
