# Error while opening localhost:3000

**URL:** <https://www.ruby-forum.com/t/error-while-opening-localhost-3000/171188>\
**Category:** Rails\
**Created:** [June 28, 2009, 4:45am UTC](https://www.ruby-forum.com/t/error-while-opening-localhost-3000/171188 "2009-06-28T04:45:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@A\_P](https://www.ruby-forum.com/u/A_P)\
**Post date:** [June 28, 2009, 4:45am UTC](https://www.ruby-forum.com/t/error-while-opening-localhost-3000/171188/1 "2009-06-28T04:45:49Z")

</div>

I installed ruby on rails and created a new project, when i start the  
server and check the “about your application’s environment” tab, I get  
a n error saying  
"  
We’re sorry, but something went wrong.

We’ve been notified about this issue and we’ll take a look at it  
shortly.  
"

can anybody tell me what I maybe doing wrong.

thank you for taking the time

---

<div class="post-metadata">

**Author:** ![A\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@A\_P](https://www.ruby-forum.com/u/A_P)\
**Post date:** [June 28, 2009, 5:01am UTC](https://www.ruby-forum.com/t/error-while-opening-localhost-3000/171188/2 "2009-06-28T05:01:17Z")

</div>

Did you setup a database environment and if so which one? sqlite3,  
mysql, postgresql?

Check your database.yml in config and it should appear like something  
similar for development:

development:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: yourdatabasename  
pool: 5  
username: root  
password:  
host: localhost

Check the adapter and determine if you are using the right type of  
database environment. The default for rails is sqlite3.

Let’s say for instance that you want to use sqlite3, you need to make  
sure that you have the gem installed (sudo gem install sqlite3-ruby) for  
linux, or gem install sqlite3-ruby for windows.

You also have to make sure that you have the latest sqlite3 files  
installed on your system. sqlite3.exe, sqlite3.dll, sqlite3.def (I  
place these in my Ruby/bin folder since Ruby/bin is added to my path  
environment. You can choose to place them anywhere so long as your path  
environment can find them.

That solves sqlite3.

However, if you are using mysql then you need to do the following:

download the gem:

(linux) sudo gem install mysql  
(windows) gem install mysql

Make sure you have mysql installed on your system and setup and that the  
server is running (mysqld).

Restart your rails server and click the tab (should be good from there)

Let me know if you need any help with this. It can be a little tricky  
to get used to at first.
