mysql command not found

Arun UK picture Arun UK · Feb 25, 2014 · Viewed 10k times · Source

I recently installed MySQL on RHEL5. I installed it to /usr/local/mysql

Complete steps for installation are here

http://dev.mysql.com/doc/refman/5.1/en/binary-installation.html

shell> cp support-files/mysql.server /etc/init.d/mysql.server

Then I could not start it from /usr/local/mysql/support-files/mysql.server start command

Now I can stop and start MySQL using the below command

/etc/init.d/mysql start
/etc/init.d/mysql stop

To create database here are the first step

mysql -u root -h localhost

I get command not found from anywhere I run. What should I try?

Answer