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] Socket error when connecting to MySQL
- Date: Thu, 13 Jul 2006 14:28:38 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] Socket error when connecting to MySQL
- References: <44B5D6E2.3020508@example.com>
On 13/07/06, Dave M G <martin@example.com> wrote:One of my applications, Zend Studio, returns the following error when I try to connect to my MySQL server: Can't connect to local MySQL server through socket /tmp/mysql.sock[...]Based on the information I saw, it seemed that what I needed to do was edit /etc/mysql/my.cnf to make sure that it had the following lines included: [client] port = 3306 socket = /var/lib/mysql/mysql.sockDid you try changing the socket line to: socket = /tmp/mysql.sock If Zend Studio is trying to connect to MySQL through /tmp/mysql.sock, and your MySQL config file sets the socket up on /var/lib/mysql/mysql.sock, that ain't ever gonna work. You need to either reconfigure Zend Studio to connect to /var/lib/mysql/mysql.sock, or configure MySQL to listen on /tmp/mysql.sock. -Josh
- Follow-Ups:
- Re: [tlug] Socket error when connecting to MySQL
- From: Dave M G
- References:
- [tlug] Socket error when connecting to MySQL
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: [tlug] Socket error when connecting to MySQL
- Next by Date: [tlug] MTAs (smail, exim, ...) [was: Hi from new server and a couple of questions]
- Previous by thread: [tlug] Socket error when connecting to MySQL
- Next by thread: Re: [tlug] Socket error when connecting to MySQL
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links