Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Can't connect to local MySQL server through socket #58

Open
al-codaio opened this issue Jun 9, 2012 · 0 comments
Open

Can't connect to local MySQL server through socket #58

al-codaio opened this issue Jun 9, 2012 · 0 comments

Comments

@al-codaio
Copy link

I am also running into a script/setup error which is not related to: #34

The mysql2 gem installs fine and when I run script/setup I run into this error:

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"railscasts_development", "pool"=>5, "username"=>"root", "password"=>nil, "host"=>"localhost"}, charset: , collation:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"railscasts_test", "pool"=>5, "username"=>"root", "password"=>nil, "host"=>"localhost"}, charset: , collation:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"railscasts_production", "pool"=>5, "username"=>"root", "password"=>nil, "host"=>"localhost"}, charset: , collation:

I'm using Ubuntu 12.04 and RVM and don't even see a /var/run/mysqld folder. Has anyone else run into this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant