Hi

I installed mysql server on ubuntu 15.04 and gem mysql2

When run command rake db:create display error:










*Resque::Helpers will be gone with no replacement in Resque 
2.0.0.Resque::Helpers will be gone with no replacement in Resque 
2.0.0.[WARNING] The git gem requires git 1.6.0.0 or later, but only found 
2.1.4. You should probably upgrade.Can't connect to local MySQL server 
through socket '/tmp/mysql.sock' (2)Couldn't create database for 
{"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, 
"database"=>"bd_development", "pool"=>5, "username"=>"root", 
"password"=>123, "socket"=>"/tmp/mysql.sock"}, charset: utf8, collation: 
utf8_unicode_ci(if you set the charset manually, make sure you have a 
matching collation)Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2)Couldn't create database for {"adapter"=>"mysql2", 
"encoding"=>"utf8", "reconnect"=>false, "database"=>"bd_test", "pool"=>5, 
"username"=>"root", "password"=>123, "socket"=>"/tmp/mysql.sock"}, charset: 
utf8, collation: utf8_unicode_ci*

database.yml:

development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: bd_development
  pool: 5
  username: root
  password: 123
  socket: /tmp/mysql.sock

How can solve this problem? please, help. Thank you





-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/da6d2a45-d67b-4769-a57a-3c70fc1676be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to