标签:
http://stackoverflow.com/questions/5286117/incompatible-character-encodings-ascii-8bit-and-utf-8
http://stackoverflow.com/questions/22932282/gemloaderror-specified-mysql2-for-database-adapter-but-the-gem-is-not-loade
这个是因为在Gemfile和database.yml里写的都是mysql,
应该是mysql2.
修改之后报出新错误:“
”
配置一下mysql2 的版本
If you have this error when upgrading to rails 4.2.4 (also with rails 4.1.5) try using this version of mysql2:
gem ‘mysql2‘, ‘~> 0.3.18‘
incompatible character encodings: UTF-8 and ASCII-8BIT
标签:
原文地址:http://www.cnblogs.com/iwangzheng/p/4898637.html