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 command:
If MySQL process is running then first stop mysql process.
Remove mysql base and data dir. By default it's location is
Do a "which mysql" and/or "which mysqld". These will tell you if your mysql executables are on your path or not. If they are not on your $PATH, go to the root directory and issue a "find . -name "mysql*" | more" to see if you do really have these files on your system. If you do have them, point your $PATH to them in your .profile/.bashrc.