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