ruby on rails - can't connect to rds at ec2 server, missing mysql socket -
i have ec2 server , rds server. , ruby on rails app connecting rds these settings worked me in local env:
host: myappnameandhash.us-west-2.rds.amazonaws.com adapter: mysql2 encoding: utf8 reconnect: false database: maindb pool: 20 username: root password: xxxx socket: /var/run/mysqld/mysqld.sock port: 3306
but on ec2 server don't have mysqld.sock file error:
fatal: failed connect mysql (error=can't connect local mysql server through socket '/var/run/mysqld/mysqld.sock' (2))
what need install in order have socket?
thanks
update:
i removed socket definition , port. deploy using capistrano , ssh server , go "current" folder. there try run: rake ts:start , following:
rake aborted! can't connect local mysql server through socket '/var/run/mysqld/mysqld.sock' (2)
but don't have socket definition in database.yml file anymore
remove socket , port number database.yml file , try, work.
Comments
Post a Comment