ruby on rails - How to configure database for existing app? -
i have downloaded 1 app github of course doesn't have database.yml
file can't run server , play it.
app use these gems:
gem 'mysql2', '0.3.11' gem 'paranoia', '~> 1.0'
what should do?
if need other file or whole gemfile, update question.
thanks!!
configure config/database.yml
following content, , adjust parameters according local mysql setup:
development: adapter: mysql2 encoding: utf8 database: blog_development pool: 5 username: root password: socket: /tmp/mysql.sock
reference: http://guides.rubyonrails.org/configuring.html#configuring-a-mysql-database
Comments
Post a Comment