Wrong owner/group for /var/run/mysql directory

Bug #28460 reported by Piotr Usewicz
94
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mysql-dfsg (Ubuntu)
Invalid
Medium
Unassigned
mysql-dfsg-5.0 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Don't know why but the owner for this directory keeps changing. It should be mysql.mysql but sometimes gets mysql.root, it makes mysql client unable to connect (ERROR 2002 - Unable to connect using socket...). Also chmod should be 755 which isnt.

Revision history for this message
Bart Verwilst (verwilst) wrote :

Because of the directory not being chmodded 755, postfix-mysql is unable to connect to mysql when you reboot the server...

Revision history for this message
Piotr Usewicz (piotr-layer22) wrote :

so the solution is to?

Revision history for this message
Bart Verwilst (verwilst) wrote :

chmod o+rx /var/run/mysql in /etc/init.d/mysql ? ;) or chmod 755.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Scott, I thought you were responsible for the tmpfs mayhem, so I'm subscribing you :)

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

I confirm this bug when dist-upgrading from a working breezy to dapper 6-feb-2006 with mysql-server version 5.0.18-6

Revision history for this message
Martin Meredith (mez) wrote :

I can also confirm

Revision history for this message
Bart Verwilst (verwilst) wrote :

it's /var/run/mysqld instead of /var/run/mysql in my previous comment btw ;)

Revision history for this message
GonzO (gonzo) wrote :

Is there a workaround for this, short of changing owner/permission at every boot up?

Revision history for this message
Bart Verwilst (verwilst) wrote :

Putting "chmod o+rx /var/run/mysqld" in /etc/init.d/mysql is the best workaround afaik.. It's strange that it takes this long to get it fixed.. clamav and jabberd have the same issues, and they're all easy to fix... :$

Nikopol (markboydell)
Changed in mysql-dfsg:
status: Unconfirmed → Confirmed
Changed in mysql-dfsg-5.0:
status: Unconfirmed → Confirmed
Revision history for this message
Adam Conrad (adconrad) wrote :

mysql-dfsg (the 4.0 series) is being dropped from dapper. This bug has now been fixed in the most recent uploads of mysql-dfsg 4.1 and 5.0.

Changed in mysql-dfsg:
status: Confirmed → Rejected
Revision history for this message
Adam Conrad (adconrad) wrote :

This bug has now been fixed in the most recent uploads of mysql-dfsg 4.1 and 5.0.

Changed in mysql-dfsg-5.0:
status: Confirmed → Fix Released
Revision history for this message
Kent Nyberg (nyberg-kent) wrote :

I upgraded just recently to the new version and that gave me mysql.dpkg-new files in init.d/.

I have not edited the mysql-files in init.d/

Revision history for this message
Kent Nyberg (nyberg-kent) wrote :

Sorry. Forget about my last comment. It was becaus the upgrade was not finished. It had stopped to ask me for a question and just not installed the new files yet. My bad. :(

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.