# RE: We're sorry something went wrong when I use -d mysql

**URL:** <https://www.ruby-forum.com/t/re-were-sorry-something-went-wrong-when-i-use-d-mysql/175944>\
**Category:** Rails\
**Created:** [September 23, 2009, 1:48am UTC](https://www.ruby-forum.com/t/re-were-sorry-something-went-wrong-when-i-use-d-mysql/175944 "2009-09-23T01:48:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![about2flip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@about2flip](https://www.ruby-forum.com/u/about2flip)\
**Post date:** [September 23, 2009, 1:48am UTC](https://www.ruby-forum.com/t/re-were-sorry-something-went-wrong-when-i-use-d-mysql/175944/1 "2009-09-23T01:48:59Z")

</div>

Hi:

I am trying to make an application using mysql. When I do rails name –  
d mysql, and then run mongrel. I will go to localhost:3000 and when i  
check my application environment, I get an error We’re sorry something  
went wrong.

Now, when I do the same procedure without using --d mysql and just use  
the defalt sqllite. When I check my application environment it shows  
the information.

Why does it not work when I try to use mysql?

Thanks

---

<div class="post-metadata">

**Author:** ![about2flip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@about2flip](https://www.ruby-forum.com/u/about2flip)\
**Post date:** [September 23, 2009, 3:23am UTC](https://www.ruby-forum.com/t/re-were-sorry-something-went-wrong-when-i-use-d-mysql/175944/2 "2009-09-23T03:23:53Z")

</div>

about2flip wrote:

> ```
> Hi:
> 
> I am trying to make an application using mysql. When I do rails name –  
> d mysql, and then run mongrel. I will go to localhost:3000 and when i  
> check my application environment, I get an error We’re sorry something  
> went wrong.
> 
> Now, when I do the same procedure without using --d mysql and just use  
> the defalt sqllite. When I check my application environment it shows  
> the information.
> 
> Why does it not work when I try to use mysql?
> 
> Thanks
> ```

I would look in database.yml to see that things are like you expect.&nbsp; Maybe rails has a different idea of what the socket should be.&nbsp;&nbsp;&nbsp; Check the values of the socket, username and password (if used) and make sure the database exists with the name shown in the database.yml.  
  
Norm  
  
--~--~---------~--~----~------------~-------~--~----~  
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.   
 To post to this group, send email to removed\_email\_address@domain.invalid   
 To unsubscribe from this group, send email to removed\_email\_address@domain.invalid   
 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en  
-~----------~----~----~----~------~----~------~--~---

---

<div class="post-metadata">

**Author:** ![about2flip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@about2flip](https://www.ruby-forum.com/u/about2flip)\
**Post date:** [September 23, 2009, 3:46am UTC](https://www.ruby-forum.com/t/re-were-sorry-something-went-wrong-when-i-use-d-mysql/175944/3 "2009-09-23T03:46:44Z")

</div>

check in your file database.yml

Maybe you have to configure the  
adapter: mysql

or check if you are using password in mysql

2009/9/22 Norm S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![about2flip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@about2flip](https://www.ruby-forum.com/u/about2flip)\
**Post date:** [September 23, 2009, 4:05am UTC](https://www.ruby-forum.com/t/re-were-sorry-something-went-wrong-when-i-use-d-mysql/175944/4 "2009-09-23T04:05:28Z")

</div>

> check in your file database.yml

> or check if you are using password in mysql

_or_ look at the log file to find out what _actually_ went wrong…

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