Unknown command-bash:mysql-fedora2

Gain Paolo Mureddu gmureddu at prodigy.net.mx
Wed Feb 9 07:42:31 UTC 2005


Mark Sargent wrote:

> Hi All,
>
> get the following error,
> -bash: mysql: command not found
> for the following cmd,
> [root at localhost mysql]# mysql -h localhost.localdomain mysql -p
> Get the feeling it's related to the cmd's needing to be added to the 
> bash for mysql, yes..? Cheers.
>
> mysql is installed here, /usr/local/mysql
>
> Mark Sargent.
>
Actually no, the commad *must* be in your PATH variable, i.e, it may 
live under /usr/bin; /usr/local/bin, etc; as long as the directory is in 
your PATH, you will be able to invoke it by its name, otherwise, if the 
command lives directly under the directory you're in, you must tell that 
to BASH preceding the command (executable file) name with a dot and a 
slash, so in this case it wuold be like this:

./mysql -l localhost.localdomain mysql -p

Regards.




More information about the fedora-list mailing list