I have seen the fix for this be one of the following: if you have charset: utf8 change that to encoding or use 127.0.0.1 and not localhost or permissions for the user in the database (create table is a good one to have... )
On Sep 22, 4:52 pm, Daniel Hutchinson <rails-mailing-l...@andreas- s.net> wrote: > hi > im on ubuntu 8.0r lts, installed rails 2.3.4 ruby gem 1.3.5 mysql > 5.0 > > when i rails myapp =>creates an sqllite3 environment and works good > when i rails myapp -d mysql have an error when run db:create > > Couldn't create database for {"socket"=>"/var/run/mysqld/mysqld.sock", > "reconnect"=>false, "encoding"=>"utf8", "username"=>"root", > "adapter"=>"mysql", "password"=>"difahu", "database"=>"a4_development", > "pool"=>5}, charset: utf8, collation: utf8_unicode_ci (if you set the > charset manually, make sure you have a matching collation) > > i can access mysql , irb, individually without problem > > somebody knows what happens???? > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---