I\'m having trouble finding a solution to this problem. I\'m getting the error:
Please install the mysql adapter: \'gem install activerecord-mysql-adapter\'
It is possible that you have changed adapter to mysql2 for a certain environment only but are not passing the environment to the rake command.
E.g. I only changed mysql to mysql2 on the production environment but was running
rake generate_secret_token
when I changed it to the following it worked:
rake generate_secret_token RAILS_ENV=production