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: Fri, 26 Sep 2008 10:41:26 +0900
- From: Dave M G <dave@example.com>
- Subject: Re: [tlug] MySQL behaving strangely
- References: <48CF9C78.4050204@articlass.org> <48D1F559.4090909@articlass.org> <48D22BA8.4000308@stoicviking.net> <200809182302.45493.fcartegnie@free.fr> <48D274FA.2010805@articlass.org>
- User-agent: Thunderbird 2.0.0.16 (X11/20080724)
TLUG,
Turns out MySQL is not quite as solved as I had hoped. After rebooting since last time it seemed to be fixed, it stopped working again.
I've narrowed down the problem, and even sort of have a solution, but I don't know if it's the right one.
When I boot, all I have to do is run this command:
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
... and MySQL works fine.
I figured I would edit /etc/mysql/my.cnf so that it said: socket = /tmp/mysql.sock
... in all the relevant places. That should eliminate the need for setting up a symlink every time, right?
Turns out, not so. When the /etc/mysql/my.cnf is edited to use /tmp/mysql.sock directly, MySQL won't connect at all. I get all sorts of "Can't connect to database" errors in just about every program that uses MySQL.
So right now it seems like the only solution is to set up a script of some kind that creates the symlink on every boot. But that seems more like a hack than a proper solution.
Is there a better way to do this?
Thanks for any advice.
-- Dave M G http://tlug.jp/mediawiki/index.php?title=User:Dave_M_G
- Follow-Ups:
- Re: [tlug] MySQL behaving strangely
- From: Francois Cartegnie
- Re: [tlug] MySQL behaving strangely
- From: Edward Middleton
- Re: [tlug] MySQL behaving strangely
- From: Curt Sampson
- Re: [tlug] MySQL behaving strangely
- From: Curt Sampson
- References:
- [tlug] MySQL behaving strangely
- From: Dave M G
- Re: [tlug] MySQL behaving strangely
- From: Dave M G
- Re: [tlug] MySQL behaving strangely
- From: Birkir A. Barkarson
- 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] Installing Multiple Language Modules in GCompris
- Next by Date: Re: [tlug] MySQL behaving strangely
- 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