我刚开始使用Pragmatic Programmer's Rails书中的软件仓库应用程序。当我尝试做一个Rake数据库:在创建Rails应用程序后创建RAILS_ENV-'development',出现以下错误:utf8与Mysql-5.0.88,ruby 1.8.7,rails 2.2和雪豹?
无法为{“encoding”=>“utf8”,“username”= >“root”,“adapter”=>“mysql”,“database”=>“depot_development”,“pool”=> 5,“password”=> nil,“socket”=>“/ tmp/mysql.sock” },字符集:UTF8,整理:utf8_general_ci(如果手动设置的字符集,请确保您有一个匹配核对)
我的my.cnf文件看起来是这样的:
的[mysqld] 字符集的文件系统= UTF8 character-set-server = UTF8 default-collation = UTF8_gene ral_ci 默认字符集= UTF8
[客户] 默认字符集= UTF8
[mysqldump的] 默认字符集= UTF8
我在做什么错?