码迷,mamicode.com
首页 > 其他好文 > 详细

incompatible character encodings: UTF-8 and ASCII-8BIT

时间:2015-10-21 19:16:29      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

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.

修改之后报出新错误:“

Gem::LoadError Specified ‘mysql2‘ for database adapter, but the gem is not loaded. Add `gem ‘mysql2‘` to your Gemfile

配置一下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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!