I am currently trying to deploy my Rails 4 app to AWS, but each time I try to view the app on AWS, I get an application error. I check the logs and see:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I've been reading several things, such as: this, but I haven't had any luck trying these various solutions and I'm driving myself crazy.
The app runs fine locally.
Here are some details:
- I have Mysql and Mysql server installed
- The service is running (again everything works as expected locally)
Here is the [client] portion of my.cnf, which is located at /etc/mysql/
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
I see some suggestions talking about mysqld, others mysql - I don't understand the difference.
Database.yml
development:
adapter: mysql2
encoding: utf8
database: wp_development
pool: 5
username: root
password: **Left out
host: localhost
I just downloaded MySql today, so I am on 5.5, the latest build. *I'm running Linux.
Can someone please point me toward a solution?
Thanks!