Webrick Rails Server doesn't run correctly -
i have spent last 6 hours fixing issues modifying $path, installing gems should be. after create project folder it's components , trying run server, got message :-
\kamal$ ls gemfile readme.rdoc app config.ru doc log script tmp gemfile.lock rakefile config db lib public test vendor \kamal$ rails server => booting webrick => rails 3.2.13 application starting in development on http://0.0.0.0:3000 => call -d detach => ctrl-c shutdown server exiting /library/ruby/gems/1.8/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': access denied user 'root'@'localhost' (using password: no) (mysql2::error) /library/ruby/gems/1.8/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize' /library/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
"and many many lines same above"
the gem list * local gems *
actionmailer (3.2.13) actionpack (3.2.13) activemodel (3.2.13) activerecord (3.2.13) activeresource (3.2.13) activesupport (3.2.13) arel (3.0.2) builder (3.0.4) bundler (1.3.5) coffee-rails (3.2.2) coffee-script (2.2.0) coffee-script-source (1.6.2) erubis (2.7.0) execjs (1.4.0) hike (1.2.2) i18n (0.6.1) journey (1.0.4) jquery-rails (2.2.1) json (1.7.7) mail (2.5.3) mime-types (1.22) multi_json (1.7.2) mysql2 (0.3.11) polyglot (0.3.3) rack (1.4.5) rack-cache (1.2) rack-ssl (1.3.3) rack-test (0.6.2) rails (3.2.13) railties (3.2.13) rake (10.0.4) rdoc (3.12.2) rubygems-update (2.0.3) sass (3.2.7) sass-rails (3.2.6) sprockets (2.2.2) thor (0.18.1) tilt (1.3.7) treetop (1.4.12) tzinfo (0.3.37) uglifier (2.0.1) webrick (1.3.1)
please help
this log entry
access denied user 'root'@'localhost' (using password: no) (mysql2::error)
shows using user root @ localhost without password database. mysql don't find valid user. following line should issue same error message:
mysql -u root -h localhost
so check database user/password in db/database.yml
file
Comments
Post a Comment