Bug #11380 | mysqld will not start-problem with /tmp/mysql.sock | ||
---|---|---|---|
Submitted: | 16 Jun 2005 13:07 | Modified: | 14 Aug 2005 3:01 |
Reporter: | Jeff Jones | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S2 (Serious) |
Version: | 5.0.7 | OS: | MacOS (Mac OS 10.3.9) |
Assigned to: | Lenz Grimmer | CPU Architecture: | Any |
[16 Jun 2005 13:07]
Jeff Jones
[28 Jun 2005 17:11]
Ronnie Schwartz
Same problem on my machine. /tmp/mysql.sock does not exist. I tried changing the /etc/my.cnf file to /tmp/mysql2.sock and it passes through the log file: 050628 13:06:57 mysqld started 050628 13:06:57 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive 050628 13:06:57 [ERROR] Can't start server : Bind on unix socket: Permission denied 050628 13:06:57 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql2.sock ? 050628 13:06:57 [ERROR] Aborting 050628 13:06:57 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 050628 13:06:57 mysqld ended
[28 Jun 2005 17:13]
Ronnie Schwartz
Forgot to mention, I am on 10.4.1.
[1 Jul 2005 1:53]
[ name withheld ]
I'm having the same problem on both my osx machines: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) one of the machines is 10.3.9 and the other is 10.4.1
[6 Jul 2005 4:45]
Jorge del Conde
Thanks for your bug report. I was able to reproduce this in 10.4.1 darwin
[13 Jul 2005 6:48]
oliver charlet
Hi, I have the same problem using mysql 4.1.12 running on Mac OS X 10.4.1. Neither the SystemPref application, nor running /Library/StartupItems/MySQLCOM/MySQLCOM, nor running /usr/local/mysql/bin/mysqld_safe will make the server start. I tried to remove /tmp/mysql.sock manually, as I thought maybe that would prevent a new server to start, but it had no effect. :oliver
[27 Jul 2005 18:41]
Jim Winstead
This is happening because the pre/post installation scripts in the installer are only running before and after fresh installs, not when installing an upgrade. Our preinstall and postinstall scripts for the Mac OS X installer should be renamed preflight and postflight so they are run for both fresh installs and upgrades. To fix an installation done with the broken installer, you just need to do the following: $ cd /usr/local/mysql $ ./scripts/mysql_install_db --rpm $ chown -R mysql data
[11 Aug 2005 18:23]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/28174
[12 Aug 2005 15:20]
Lenz Grimmer
Now pushed - fix will be included in 4.0.26, 4.1.14, and 5.0.12. The Mac OS X installer will now execute the preflight and postflight scripts every time a Mac OS X PGK of MySQL is installed. Previously, these scripts were called "preinstall" and "postinstall", which are only executed during a fresh installation, not on update.
[14 Aug 2005 3:01]
Paul DuBois
Noted in 4.0.26, 4.1.14, 5.0.12 changelogs.
[12 May 2006 17:25]
Nadorvir
i have FreeBSD 6.1 Mysql (4.1.19) can't start with same error message. version 4.1.18 worked normally
[7 Sep 2007 3:50]
Helvecio da Silva
I've installed package 5.0.45 and I too am having this /tmp/mysql.sock problem. Any news on that?
[27 Feb 2009 15:06]
Rick Saltzman
My solution to the [ERROR] Can't start server : Bind on unix socket: Permission denied problem was to change ownership of the directories: __PREFIX/var/run/mysqld __PREFIX/var/db/mysql sudo chown mysql <each directory>
[12 Apr 2011 0:12]
Ajay kumar
test