Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] MySQL behaving strangely
- Date: Wed, 17 Sep 2008 00:18:16 +0900
- From: "Ian Barwick" <barwick@example.com>
- Subject: Re: [tlug] MySQL behaving strangely
- References: <48CF9C78.4050204@articlass.org> <200809162132.09910.fcartegnie@free.fr> <48CFB686.5060502@articlass.org>
HiWriting off the top of my head here, but this seems to be a not uncommon MySQL problem. IIRC historically it prefers /tmp/mysql.sock as the default, and a lot of applications still expect to find it there, but maybe the Ubuntu packagers wanted to put it somewhere more logical?This should work as a quick'n'nasty fix:ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sockIf Ubuntu clears the /tmp directory on reboot it won't stick though; you'll need to dig out the my.cnf file (presumably somewhere under /etc) and change the setting there (probably easier than going through all the client application settings).Useful reference:Ian Barwick2008/9/16 Dave M G <dave@example.com>Francois
Thanks for replying.According to phpinfo(), my MYSQL_SOCKET is located at:
If it's different from /var/run/mysqld/mysqld.sock then you'll have to reconfigure
I also ran a whereis to see if there were any others on my system, and there weren't:
/var/run/mysqld/mysqld.sock
$ whereis mysqld.sock
mysqld: /usr/sbin/mysqld
The problem seems to go beyond phpMyAdmin. I can't login to Zend Platform (returns the same error), nor can I start a mysql interface from the command line:
$ mysql -u root -p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Does this shed any more light on the problem?
--
Dave M G
--
To unsubscribe from this mailing list, please see the instructions at http://www.tlug.jp/list.html
Please visit our sponsor at http://www.primustel.co.jp/tlug/
--
http://sql-info.de/index.html
- Follow-Ups:
- Re: [tlug] MySQL behaving strangely
- From: Dave M G
- References:
- [tlug] MySQL behaving strangely
- From: Dave M G
- Re: [tlug] MySQL behaving strangely
- From: Francois Cartegnie
- Re: [tlug] MySQL behaving strangely
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] MySQL behaving strangely
- Next by Date: Re: [tlug] Hey, I'm all about the RAID now (Was: Setting up a RAID 1 with Ubuntu)
- Previous by thread: Re: [tlug] MySQL behaving strangely
- Next by thread: Re: [tlug] MySQL behaving strangely
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links