phpmyadmin and mysql don't work on my Mac OSX



I am a new php player to install the phpMyAdmin-2.6.4-pl2/ to My Mac OSX and found
by using this url as my localhost
that turns this error message: MySQL said:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

And I don't know what should I configure it and what file should be configured and where this
phpMyAdmin-2.6.4-pl2 should be put. I have created phpinfo.php page which is inside of /Library/webserver/document/mysitename/phpinfo.php. But I don't know where should I put phpMyAdmin-2.6.4-pl2 and how can I make that work.

Any inputs will be appreciate!

check if mysql is running ?
check the mysql socket generally it is /tmp/mysql.sock