ok..
Still top-posting...
[root@lserver2 /]# type mysql mysql is hashed (/usr/local/bin/mysql) [root@lserver2 /]# file /usr/bin/mysql /usr/bin/mysql: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped [root@lserver2 /]# rpm -q mysql mysql-3.23.58-9.1
does this shed any light??
Try: # hash -l # hash -r # hash -l
Then see what happens.
Your shell appears to have "found" a /usr/local/bin/mysql at some point though it no longer exists, and is still trying to use it. "hash -r" should make it forget these "remembered" locations.
i'd suggest simply copying the files in the '/usr/bin/my*' to the '/usr/local/bin/my*' except that that would mean i still have files in two different dirs, and it doesn't solve why this is going on...
Indeed it doesn't.
Paul.