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

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

check in your file database.yml

Maybe you have to configure the adapter: mysql

or check if you are using password in mysql

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...