I have installed MySQL 5.5.31 in Opensolaris. When I tried starting the MySQL server, it says bash: mysql: command not found So, I decided to uninstall the whole lot and try doing again. But I could not find any spporting documents online to do so, because either they refer to .rpm file unistallation pkgrm. I used .tar extension and pkgrm is not supported in my machine.
check mysql service use following commands,
ps -ef | grep mysql
if mysql process is running then first stop mysql process.
kill -9 mysql_pid
remove mysql base and data dir. by default it's location is /usr/local/mysql use following command
rm -r mysql
start with fresh installtion: ref this link for mysql binary installation.