Check the Socket MySQL is running On
In Rails Development, you will need to specify the socket the MySQL Server is running on in the config/database.yml file.
You can get the socket as
$ mysqladmin variables | grep socket
You will get output something like this
| socket | /tmp/mysql.sock
/tmp/mysql.sock is the socket your mysql is running on.
So include that path in your database.yml config file.
Written by Rajeev N Bharshetty
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#