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
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.
Maybe rails has a different idea of what the socket should
be. 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
[email protected] To
unsubscribe from this group, send email to
[email protected] For more options,
visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
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. [email protected]
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. ------------------------ [email protected]
twitter: @hassan