THat is not the command to use when u configure mysql.
./configure is used to configure ur c scripts before compiling ur programs.
AND
It doesn't work coz u must be in the source folder of mysql to do that.
If u have installed mysql, make sure u started the service. Else it wont work.
Now, to solve ur problem.
1. Check ur mysql service is running. To do that, type:
service mysqld status
---> U should see mysqld is running or u can start it by typing;
"service mysqld start"
2. If it's started, type "mysql" and u will reach the "mysql>" prompt.
U r doing php and i believe ur mysql is not running or there is sth wrong with ur script friend.