Bug #29748 | Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' | ||
---|---|---|---|
Submitted: | 12 Jul 2007 3:51 | Modified: | 12 Jul 2007 4:51 |
Reporter: | Todd Suess | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S1 (Critical) |
Version: | 4.1 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | MySQL, mysql error, mysqlsock |
[12 Jul 2007 3:51]
Todd Suess
[12 Jul 2007 4:28]
Valeriy Kravchuk
Thank you for a problem report. Please, send your error log and the results of: ls -l /var/run netstat -a | grep mysqld I do not think that this is a result of some bug in the code, by the way.
[12 Jul 2007 4:35]
Todd Suess
Hi, I isolated the problem. It's a permissions problem. I was messing with "my.cnf" and when I change the "user" variable to "root" it works fine, but when it's at a default of "mysql", it gives me trouble. I would like to correct the permissions on this if possible, but it seems like what I've tried on fixing the folder permissions hasn't worked. Here are the permissions of MySQL's essential files: /var/lib/mysql user:mysql | group:mysql /var/log/mysql user:mysql | group:mysql Are there any other files that would be essential to this? Before this, the permissions used to be "user:root" and "group:mysql" but that doesn't seem to work.
[12 Jul 2007 4:47]
Valeriy Kravchuk
We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug. Support on using our products is available both free in our forums at http://forums.mysql.com/ and for a reasonable fee direct from our skilled support engineers at http://www.mysql.com/support/ Thank you for your interest in MySQL.
[12 Jul 2007 4:51]
Todd Suess
Whoops! Sorry about that. Thanks for your help! Much appreciated!