please check your my.cnf for the location of mysql.sock file. If i am not wrong mysql by default creates the mysql.sock file /var/lib/mysql.
On 9/26/08, Sudhir Menon <[EMAIL PROTECTED]> wrote: > > Hello, > > I have mysql-5.0.22-2.1.0.1.rpm version installed on RHEL5.1 system. I have > been trying certain benchmarking tools and > found that MySQL5.1 has inbuilt benchmarking tool known as "mysqlslap". > Since the tool is not available > for MySQL5.0, i have downloaded the source rpm > MySQL-community-5.1.28-0.rhel5.src.rpm and tried to get the binary > mysqlslap > so that i can execute it in the same > machine running MySQL5.0 and benchmark the same. > > But after compiling the tarball i was not able to login to mysql using : > mysql -u root -p . It gave me the below error. > Cannot connect to /tmp/mysql.sock, which is not the socket file as it is > /var/lib/mysql/mysql.sock. > > Although i could login to mysql by issuing this command :- ln -s > /var/lib/mysql/mysql.sock /tmp/mysql.sock > > The above scenario should not happen when i have just compiled the source > code. What could be wrong. Am i trying something wrong ??? > > > Best Regards > Sudhir.Menon >