Mysql2 :: Error: Can't connect to local MySQL server via socket '/tmp/mysql.sock' (2)
I am trying to migrate to Ruby on Rails 4 and I am getting the following error:
********-C02MGBVJFD57:myapp michaelsutyak$ bundle exec rake db:migrate
rake aborted!
Mysql2::Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Any ideas why this is happening? Thanks for the help.
+3
source to share
1 answer