1 to 2 of 2
Try opening /path/to/your/app/config/database.yml. Make sure the type is mysql, host is localhost or the IP to the database, database_name is the name of the database, user & password are correct. Unless you are really wanting a different database for each environment( production, dev, and test), you can make the database_name all the same for each one. A sample of database.yml is below. if this doesnt work, ensure your "mysql" database is setup correctly for the db and user tables for the user and password specified below. dont forget to flush priveledges in mysql if you just added the user and password:
production:
type: mysql
database_file:
host: localhost
port:
database_name: prod
user: myuser
password: mypass
options:
development:
type: mysql
database_file:
host: localhost
port:
database_name: dev
user: myuser
password: mypass
options:
testing:
type: mysql
database_file:
host: localhost
port:
database_name: testing
user: myuser
password: mypass
options:
1 to 2 of 2