basic question -linux path..(/usr/bin, /usr/local/bin)
bruce
bedouglas at earthlink.net
Tue Mar 29 13:17:47 UTC 2005
paul,
when i do an
#echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/b
in:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.1_02/bin:/opt/condor
-6.6.6/sbin:/opt/condor-6.6.6/bin:/root/bin
which says that i have both '/usr/local/bin' and '/usr/bin'.
when i do
#mysql, i get
-bash: /usr/local/bin/mysql: No such file or directory
however, the mysql file is in the '/usr/bin' dir, and if i do
#/usr/bin/mysql, mysql runs....
the '/usr/bin/my*' dir is:
[root at lserver2 /]# ls /usr/bin/my*
/usr/bin/myisamchk /usr/bin/mysqld_multi
/usr/bin/myisamlog /usr/bin/mysqldump
/usr/bin/myisampack /usr/bin/mysqldumpslow
/usr/bin/my_print_defaults /usr/bin/mysql_find_rows
/usr/bin/mysql /usr/bin/mysql_fix_privilege_tables
/usr/bin/mysqlaccess /usr/bin/mysqlhotcopy
/usr/bin/mysqladmin /usr/bin/mysqlimport
/usr/bin/mysqlbinlog /usr/bin/mysql_install_db
/usr/bin/mysqlbug /usr/bin/mysql_setpermission
/usr/bin/mysqlcheck /usr/bin/mysqlshow
/usr/bin/mysql_config /usr/bin/mysqltest
/usr/bin/mysql_convert_table_format /usr/bin/mysql_zap
any ideas as to how to get mysql to run from the command line..??
thanks
bruce
-----Original Message-----
From: fedora-list-bounces at redhat.com
[mailto:fedora-list-bounces at redhat.com]On Behalf Of Paul Howarth
Sent: Tuesday, March 29, 2005 5:03 AM
To: For users of Fedora Core releases
Subject: Re: basic question -linux path..(/usr/bin, /usr/local/bin)
bruce wrote:
> how do i set my environment path? when i try to run mysql (foo>mysql -u
> root -p) i get an err, stating that the mysql isn't in the
'/usr/local/bin'
> dir. however, the mysql is in the '/usr/bin' dir. i would have thought
that
> this dir would have been searched....
>
> when i do a 'which mysql', it points to the '/usr/bin/mysql'.
>
> if i run '/usr/bin/mysql' mysql works. if i simply run 'mysql' it
complains
> that it can't find the '/usr/local/bin/mysql'.
>
> any ideas as to what's going on, or what i should change to simply point
to
> the '/usr/bin' for mysql? i'm not quite sure if i even need the
> '/usr/local/bin' mysql files...
A standard Fedora installation does not put *anything* in
/usr/local/bin, so if there's anything there then presumably you put it
there.
If you type:
echo $PATH
it will show you the list of directories searched, in order, when you
type a command name without a "/" in it. You must have a "mysql" command
in one of the directories listed before /usr/bin in your PATH.
So what you need to do is to figure out what is that's on your system in
addition to the system-supplied version of mysql and decide which of the
two you actually want to use. If you don't want the one in
/usr/local/bin, get rid of it.
Paul.
--
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
More information about the fedora-list
mailing list