Hi there everyone,
On my production server I start the mongrel server as follows:
mongrel_rails start -e production -a 127.0.0.1 -p 3001 -d
However when going to the domain I get the following error:
#42000Unknown database ‘satechevents_development’
Why is rails looking for the development database in production mode.
Thanks for the help,
Schalk
I’ve seen an issue before where non-root mysql accounts just don’t
work. Even with full GRANT on the database in question. I can’t
explain it. But for troubleshooting, try your root account in your
production database.yml and retry. Secondly, in the same manner,
database migrations sometimes give the same problem AFTER you get your
app working. Lastly, you can try to give the production connection the
path to your mysql.sock socket file. (find / -name mysql.sock) I’ve
seen that cause issues as well.
Good luck.
H
Thanks Fred,
I will look into this. How can I ensure that all instances of mongrel is
stopped?
Schalk
ps -ef | grep ‘mongrel’
On Oct 2, 4:01 pm, Frederick C. [email protected]
On 2 Oct 2008, at 15:51, Schalk N. wrote:
Thanks Fred,
I will look into this. How can I ensure that all instances of
mongrel is
stopped?
look at the output of ps ?
Fred