Thursday, June 24, 2010

MYSQL in rails

we can use MYSQL server in rails instead of sqllite,for that we have to configure the database.yml(config/database.yml) file like this

development:
adapter: mysql
database: database name_development
host: localhost
socket: /var/run/mysqld/mysqld.sock
encoding: utf8
username: username
password: password

test:
adapter: mysql
database: database name_test
host: localhost
socket: /var/run/mysqld/mysqld.sock
encoding: utf8
username: username
password: password

production:
development

No comments:

Post a Comment