Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update host from localhost to 127.0.0.1 #6

Closed
wants to merge 1 commit into from

Conversation

IceskYsl
Copy link

@IceskYsl IceskYsl commented Feb 4, 2014

02/04 10:42:37 WARN Longview[6223] - DBI connect('host=localhost;','longview',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /opt/linode/longview/Linode/Longview/DataGetter/Applications/MySQL.pm line 69

02/04 10:42:37 WARN Longview[6223] - DBI connect('host=localhost;','longview',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /opt/linode/longview/Linode/Longview/DataGetter/Applications/MySQL.pm line 69
@dwfreed
Copy link
Contributor

dwfreed commented Feb 4, 2014

I would suspect that this is intentionally this way, as 'localhost' has special meaning to MySQL, and means to connect to whatever is configured as the listen socket in the MySQL configuration. If this configuration doesn't match how your local MySQL server is actually running, you should adjust your my.cnf to match. It usually lives in either /etc/mysql/my.cnf or /etc/my.cnf.

@displague
Copy link

I'm closing this as localhost does indeed carry the special meaning @dwfreed mentioned and is therefor preferable.

http://search.cpan.org/~capttofu/DBD-mysql-4.031/lib/DBD/mysql.pm#connect

Thanks @IceskYsl and our apologies for the wait.

@displague displague closed this May 1, 2015
@displague
Copy link

@IceskYsl #17 reflects a broader need for configurability. You may want to track that issue.

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

Successfully merging this pull request may close these issues.

None yet

3 participants