Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94608 - Installation of Mysql 4.1.12 indicated successful; priv's on /var/.../mysqld.sock incorrect
Summary: Installation of Mysql 4.1.12 indicated successful; priv's on /var/.../mysqld....
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 04:39 UTC by Chuck Wegrzyn
Modified: 2005-06-05 06:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chuck Wegrzyn 2005-05-31 04:39:29 UTC
I did an "emerge unmerge mysql" to remove the previous version of mysql I had on
my system. I did a hand cleanup of the /var/lib/mysql, etc to make sure I had
everything removed. 

I then did an emerge mysql to get the 4.1.12 version. It indicated success.
Whenever I tried to access it, other than via a SU shell, I would get a message
about "Can't connect to local MySQL server through socket". I tracked the
problem down to wrong access priv's on the /var/run/mysqld/mysqld.sock. Once I
corrected the UGO priv's everything worked.

Reproducible: Always
Steps to Reproduce:
1.emerge mysql
2.
3.

Actual Results:  
Kept getting the message: Can't connect to local MySQL server through socket.

Expected Results:  
Correct the UGO access privs on mysqld.sock to allow rw access (and make sure
the intervening subdirectories do as well!).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-05-31 04:55:32 UTC
Well, the socket just goes away once mysql is stopped, so you probably failed to
stop it prior to unmerging and this left a stale socket behind. 

What do you get when you run 'ls -la /var/run/mysqld' ?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-05-31 09:38:24 UTC
Well, I just tried here. Upgrade from 4.0.24 works as expected, no problems here. 

# ls -la /var/run/mysqld/
total 4
drwxr-xr-x  2 mysql mysql 136 May 31 18:31 .
drwxr-xr-x  7 root  root  448 May 30 02:27 ..
-rw-r--r--  1 mysql mysql   0 May 31 18:06 .keep
-rw-rw----  1 mysql mysql   6 May 31 18:30 mysqld.pid
srwxrwxrwx  1 mysql mysql   0 May 31 18:30 mysqld.sock

# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.12-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
Comment 3 sYnopsis 2005-06-05 06:18:21 UTC
chmod a+x /var/run/mysqld

and then it works fine.