The "sock" file is not a permanent file. It is a socket descriptor that should only exist if the MySQL server is running and if the server is configured to supports socket-type connections. Most of the default installations DO NOT start the server as part of the installation process. That way you have a chance to customize any configurations before the first start (very convenient if you are migrating or upgrading).
If you do not see a sock file it means: a) you haven't started the server (either in stand-alone or daemon mode) or b) you do not have a version of the server that supports system sockets or c) your server's configuration file is defined in such a way to suppress system socket usage. Shawn Green Database Administrator Unimin Corporation - Spruce Pine "Barbara Deaton" <[EMAIL PROTECTED]> wrote on 10/11/2005 10:25:46 AM: > Thank you for the link. > > I understand that I need a mysql.sock file, what I don't understand > is that I used to get one when I installed MySQL. When I look > through all my 4.0.x mysql directories I see a socket directory that > contains a mysql.sock file. With my 4.1 install I do not see this file. > > Why do I no longer get a socket/mysql.sock with the install? > > Thanks again for your time. > -Barb. > > -----Original Message----- > From: Gleb Paharenko [mailto:[EMAIL PROTECTED] > Sent: Monday, October 10, 2005 6:21 PM > To: mysql@lists.mysql.com > Subject: Re: SOCKET directory > > Hello. > > > However, when I try to connect I get the error: > > Have a look here: > http://dev.mysql.com/doc/mysql/en/can-not-connect-to-server.html > > Barbara Deaton wrote: > > With MySQL 4.0 when I wanted to run my application on any of the unix > > = boxes I had to set the MYSQL_UNIX_PORT environment variable to point > > to = the location of my socket file. Looking through my 4.1.9 install > > I no = longer see a mysql/socket directory. =20 > > > > However, when I try to connect I get the error: > > > > ERROR: Error trying to establish connection: Can't connect to local = > > MySQL=20 > > server through socket '/tmp/mysql.sock' (2) > > > > Where did it go? Is it no longer needed? > > > > Thanks for any information. > > > > Barbara > > > > > -- > For technical support contracts, goto https://order.mysql.com/?ref=ensita > This email is sponsored by Ensita.NET http://www.ensita.net/ > __ ___ ___ ____ __ > / |/ /_ __/ __/ __ \/ / Gleb Paharenko > / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] > /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.NET > <___/ www.mysql.com > > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] >