0

My application staging environment is using mysql adapter in database.yml file. but i have included mysql2 gem in my gemfile, due to which i am having msql adapter error. file is like this?

staging:
  adapter:   mysql
  database:  myapp
  username:  xyz
  password:  IiVTKgcJCt
  host:      ec2-50-16-127-64.compute-1.amazonaws.com
  reconnect: true

how can i change adapter to mysql2 ?

Ramiz Raja
  • 5,942
  • 3
  • 27
  • 39

2 Answers2

5

Under normal circumstances your database.yml will be set to use the correct adapter automatically by Engine Yard. If this is not occurring you may have a configuration issue that is causing this issue. If this is still a concern for you I recommend opening a ticket with our support team so we can assist you further. https://support.cloud.engineyard.com

Thank you,

Tyler

tpol
  • 301
  • 1
  • 6
1

I ran into a similar situation and ended up uploading a custom cookbook to write out the database.yml file. I used this example I found on the googles:

https://gist.github.com/1989695

garrettux
  • 169
  • 4