# My First Application in Ruby on Rails

**URL:** <https://www.ruby-forum.com/t/my-first-application-in-ruby-on-rails/176956>\
**Category:** Rails\
**Created:** [October 8, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/my-first-application-in-ruby-on-rails/176956 "2009-10-08T23:48:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yousef\_1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/51bf81/32.png) [@yousef\_1987](https://www.ruby-forum.com/u/yousef_1987)\
**Post date:** [October 8, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/my-first-application-in-ruby-on-rails/176956/1 "2009-10-08T23:48:07Z")

</div>

hi everybody

Iam trying to create my First App in Ruby on Rails . but I getting  
something wrong.

when I click in “About your applicationâ€™s environment” , it dose not  
show anything. it only show this message “We’re sorry, but something  
went wrong.”

in any way I have to ask about this message , and how I can solve this  
error

SEVERE: !!! The bundled mysql.rb driver has been removed from Rails 2.2.  
Please install the mysql gem and try again: gem install mysql.

in addition to that I have to ask , how I can create DB by using IDE  
connection ,when I tried to create DB it show to me this error

“An error was encountered while creating Database  
org.netbean.api.db.explore.DatabaseException:org.netbean.api.db.explore.DatabaseException:java.sql.SQLException:Access  
denied for user ‘root’@‘localhost’(using password:NO)”

please any can help me .

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![yousef\_1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/51bf81/32.png) [@yousef\_1987](https://www.ruby-forum.com/u/yousef_1987)\
**Post date:** [October 9, 2009, 12:12am UTC](https://www.ruby-forum.com/t/my-first-application-in-ruby-on-rails/176956/2 "2009-10-09T00:12:33Z")

</div>

On Thu, Oct 8, 2009 at 2:48 PM, Yousef J.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> in any way I have to ask about this message , and how I can solve this  
> error
> 
> SEVERE: !!! The bundled mysql.rb driver has been removed from Rails 2.2.  
> Please install the mysql gem and try again: gem install mysql.

? You solve it be doing what it says to do: `gem install mysql`

> in addition to that I have to ask , how I can create DB by using IDE  
> connection ,when I tried to create DB it show to me this error

> Access denied for user ‘root’@‘localhost’(using password:NO)"

Forget the IDE. Use your mysql command line client to make sure

1. that you know what the root password is, 2) it really does work,  
and 3) that info is in your config/database.yml . While you’re logged  
in you can create your DB(s), as well.

## HTH,

Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![yousef\_1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/51bf81/32.png) [@yousef\_1987](https://www.ruby-forum.com/u/yousef_1987)\
**Post date:** [October 9, 2009, 12:24am UTC](https://www.ruby-forum.com/t/my-first-application-in-ruby-on-rails/176956/3 "2009-10-09T00:24:50Z")

</div>

On Thu, Oct 8, 2009 at 11:22 PM, Fidel V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > went wrong."
> 
> the environments file, as Netbeans uses JRuby instead of Ruby. Don’t  
> know if that changed now, but it used to be based on JRuby.

Sorry, I meant config/database.yml file.

Regards,

Fidel.

---

<div class="post-metadata">

**Author:** ![yousef\_1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/51bf81/32.png) [@yousef\_1987](https://www.ruby-forum.com/u/yousef_1987)\
**Post date:** [October 9, 2009, 12:24am UTC](https://www.ruby-forum.com/t/my-first-application-in-ruby-on-rails/176956/4 "2009-10-09T00:24:15Z")

</div>

On Thu, Oct 8, 2009 at 10:48 PM, Yousef J.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> in any way I have to ask about this message , and how I can solve this  
> org.netbean.api.db.explore.DatabaseException:org.netbean.api.db.explore.DatabaseException:java.sql.SQLException:Access  
> denied for user ‘root’@‘localhost’(using password:NO)"
> 
> please any can help me .

Looks like you are using Netbeans. I have had this problem before when  
using the IDE. I think I had replaced mysql by jdbcmysql as adapter in  
the environments file, as Netbeans uses JRuby instead of Ruby. Don’t  
know if that changed now, but it used to be based on JRuby.

Regards,

Fidel.
