i am doing this from the terminal as root:

root@iwa11:~/snortinstall/snort-2.4.4# /usr/local/mysql/bin/mysql -u root -p <./schemas/create_mysql snort
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)



i am sure that i am entering the password correctly... please can you tell me what to do... i have done
locat mysql.sock
then it showed that it is
/var/lib/mysql/mysql.sock

and then i did from /tmp
ln -s /var/lib/mysql/mysql.sock mysql.sock

and did start again it is still saying
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


please if you know can you tell me what it is the problem, i also tried rebooting the machine but the same thing happens again and again...