"mysql test
mysql: Command not found."
in which directory are you when to try to run this command? I always do a safe_mysqld from the mysql dir which would mean that the mysql command would also be bin/mysql, not just mysql. Else I have the same error, command not found.