Zia
unread,Dec 16, 2010, 11:19:02 PM12/16/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to EngineY
Hi,
I'm having trouble connecting with mysql. I tried solutions from
different posts/blogs but so far not able to resolve this. I can
connect to mysql and create db fine, but rake task fails. What am I
doing wrong here?
Please advice.
Thanks,
Zia
rake db:create:all --trace
(in /Users/zs/work/EngineY)
** Invoke db:create:all (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create:all
Couldn't create database for {"username"=>"root", "adapter"=>"mysql",
"database"=>"enginey_development", "host"=>"localhost",
"password"=>nil}, charset: utf8, collation: utf8_unicode_ci (if you
set the charset manually, make sure you have a matching collation)
Couldn't create database for {"username"=>"root", "adapter"=>"mysql",
"database"=>"enginey_test", "host"=>"localhost", "password"=>nil},
charset: utf8, collation: utf8_unicode_ci (if you set the charset
manually, make sure you have a matching collation)
sudo bin/mysqld_safe --skip-grant-tables
101216 19:55:48 mysqld_safe Logging to '/usr/local/mysql-5.5.8-osx10.6-
x86/data/Zia-Syeds-MacBook-Pro.local.err'.
101216 19:55:48 mysqld_safe Starting mysqld daemon with databases
from /usr/local/mysql-5.5.8-osx10.6-x86/data
ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0
rails -v
Rails 2.3.5
uname -a
Darwin Zia-Syeds-MacBook-Pro.local 10.5.0 Darwin Kernel Version
10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/
RELEASE_I386 i386