# Mysql error on brand new application with one empty controller

**URL:** <https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983>\
**Category:** Rails\
**Created:** [December 13, 2007, 7:08am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983 "2007-12-13T07:08:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Jhorra](https://www.ruby-forum.com/u/Jhorra)\
**Post date:** [December 13, 2007, 7:08am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983/1 "2007-12-13T07:08:51Z")

</div>

I just purchased the rails space book, and I’m walking through. All I  
did so far was create the application, and the controller with three  
empty actions. When I try to navigate to any of them I get the  
following error:  
Mysql::Error in SiteController#index

#28000Access denied for user ‘root’@‘localhost’ (using password: NO)

I even went into the database yml file and put in the correct db  
password etc. I opened up another rails project I created and it  
works fine. I deleted the project and recreated it, and I get the  
same error.

I created the project using rails rails\_space  
Then the controller using script/generate controller site index help  
about

What am I supposed to do with this?

---

<div class="post-metadata">

**Author:** ![Jhorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Jhorra](https://www.ruby-forum.com/u/Jhorra)\
**Post date:** [December 13, 2007, 7:16am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983/2 "2007-12-13T07:16:28Z")

</div>

Did you restart the script/server or mongrel process during this time?

On Dec 13, 2007 4:38 PM, Jhorra [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> password etc. I opened up another rails project I created and it  
> works fine. I deleted the project and recreated it, and I get the  
> same error.
> 
> I created the project using rails rails\_space  
> Then the controller using script/generate controller site index help  
> about
> 
> What am I supposed to do with this?
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![Jhorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Jhorra](https://www.ruby-forum.com/u/Jhorra)\
**Post date:** [December 13, 2007, 7:24am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983/3 "2007-12-13T07:24:39Z")

</div>

Yes, once on the original application, then again when I created it  
the second time.

---

<div class="post-metadata">

**Author:** ![Jhorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Jhorra](https://www.ruby-forum.com/u/Jhorra)\
**Post date:** [December 13, 2007, 7:27am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983/4 "2007-12-13T07:27:34Z")

</div>

If it’s still giving you that error even when you restart it can only be  
one  
thing: You didn’t change the right password. Are you running in  
production  
or development mode?

On Dec 13, 2007 4:54 PM, Jhorra [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > –  
> > Ryan B.[http://www.frozenplague.net](http://www.frozenplague.net)

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![Jhorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Jhorra](https://www.ruby-forum.com/u/Jhorra)\
**Post date:** [December 13, 2007, 7:35am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983/5 "2007-12-13T07:35:45Z")

</div>

I’m working in the development environment. I even logged in using  
Mysql Administrator just to make sure it was working. I logged in and  
created the database.

---

<div class="post-metadata">

**Author:** ![Jhorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Jhorra](https://www.ruby-forum.com/u/Jhorra)\
**Post date:** [December 13, 2007, 7:57am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983/6 "2007-12-13T07:57:25Z")

</div>

Ok, even after reinstalling, and restarting the computer I still get  
the mysql error. The service is running, and I’m positive I have the  
correct password in the yml file. Also, there is absolutely 0 sql in  
this application so far, only an empty controller.

---

<div class="post-metadata">

**Author:** ![Jhorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@Jhorra](https://www.ruby-forum.com/u/Jhorra)\
**Post date:** [December 13, 2007, 7:38am UTC](https://www.ruby-forum.com/t/mysql-error-on-brand-new-application-with-one-empty-controller/122983/7 "2007-12-13T07:38:41Z")

</div>

When I try and stop, then start the server I get some bad errors. I’m  
going to try reinstalling mysql and see if that helps.
