First try to find out where you socket is located:
# lsof -p {$PID_OF_MYSQL] |grep unix
mysqld 1277 root 4u unix 0xcb596580 1712 /var/lib/mysql/mysql.sock
And then point to this file in mysql conf file:
# more /etc/my.cnf
[client]
socket=/var/lib/mysql/mysql.sock
[mysqld]
socket=/var/lib/mysql/mysql.sock
(this config should startup mysqld with default socket to /var/lib/...)
Regards, Erik
On Fri, 23 Mar 2001, Foresight Systems Ltd. wrote:
> Dear Sir,
>
> We are trying to install and configure mysql version .23.32 on Linux Red
> Hat 7.
> Usinf the configure option
> ./configure --prefix=/usr/local --localstatedir=/usr/local/mysql/data
> --with-unix-socket-path=/usr.local/mysql/tmp/mysql.sock
> the make and make install.
> we have tried several variations of the configure options.
> no error is shown during compilation and installation.
> On executing mysql from root
> there is an error
> sayin Can't connect to local MySql server. through
> var/lib/mysql/mysql.sock.
> We have tried with changed socket path in configure option giving the
> above path.
> But we do'nt find the sock file in any of the directory.
> Plese help us to resolve this problem.
> We have already installed apache and PHP4 in our system with success.
>
> Akshaya
>
>
>
>
> ---------------------------------------------------------------------
> 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
>
--
=======================================
===== Erik Ahlström, [EMAIL PROTECTED] ====
Systems Engineer, ProAct Datasystem AB
Vx: +46 8 4106 6600 Ph: +46 8 4106 6621
Fx: +46 8 623 18 56 Mob:+46 73 356 6621
>>>>>>>> Lin*x, *BSD, Solaris <<<<<<<<<
=======================================
Unix IS user friendly.
It's just selective about who its friends are.
---------------------------------------------------------------------
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