Setup Rails2 with Remote MySQL Database

October 7, 2011 | By Regaz | Filed in: Uncategorized.
  1. Install the MySQL adapter

    gem install mysql
  2. Open and Edit config/database.yml

    adapter: mysql
    database: yourDBName
    host: or hostName
    username: yourUserName
    password: yourPass
    port: 3306 or other

If running rake you get an Error message containing ‘development database is not configured (activerecord::adapternotspecified)’ this depend from a typo or extra-tab. Check accurately your database.yml.

Tags: ,

QuickChic Theme • Powered by WordPress