Re: Unknown command-bash:mysql-fedora2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Sargent wrote:

Hi All,

get the following error,
-bash: mysql: command not found
for the following cmd,
[root@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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux