mysql socket inaccessible by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
Because mysqld_safe sets umask to 007, all users except root (SYSTEM A/C,NOT MYSQL A/C) can't connect to mysql server. As a side effect, no web application can work unless they use TCP connection.
=======
user@mari:~$ mysql -u user -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/
user@mari:~$ ls -ld /var/run/mysqld
drwxrwx--- 2 mysql root 80 2006-01-26 01:47 /var/run/mysqld
user@mari:~$ sudo chmod o+x /var/run/mysqld
user@mari:~$ mysql -u user -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 5.0.18-Debian_6-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>