Argh...if I had a nickel for every time this happens...
Of courser after 10 more minutes of searching the manual, I found the
solution. Still not sure why it defaults to /var/lib.
For archives sake, here's the cut and paste...
"You can also start safe_mysqld with the --socket=/path/to/socket option and
set the environment variable MYSQL_UNIX_PORT to the socket pathname before
starting your MySQL clients."
-Matt
::-----Original Message-----
::From: Matt Thoene [mailto:[EMAIL PROTECTED]]
::Sent: Friday, January 12, 2001 11:20 AM
::To: mySQL Mailing List
::Subject: can't find mysql.sock error
::
::
::I know I'll probably get yelled at for something that is probably easy to
::fix but I have spent a few days searching the archives, manual,
::etc and I've
::been unable to find answers. When doing any kind of mysql command (e.g.
::mysql -D database.sql) I get this error:
::
::ERROR 2002: Can't connect to local MySQL server through socket
::'/var/lib/mysql/mysql.sock' (111)
::
::myslq.sock is in /tmp. I start mysql using bin/safe_mysqld. Mysql is
::running. Why is it looking for mysql.sock in /var/lib?
::
::Thanks.
::
::-Matt
::
::
::---------------------------------------------------------------------
::Before posting, please check:
:: http://www.mysql.com/manual.php (the manual)
:: http://lists.mysql.com/ (the list archive)
::
::To request this thread, e-mail <[EMAIL PROTECTED]>
::To unsubscribe, e-mail <[EMAIL PROTECTED]>
::Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
::
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php