$PATH issues with OSX Lion
Posted
by
Mikey
on Super User
See other posts from Super User
or by Mikey
Published on 2012-06-25T13:27:44Z
Indexed on
2012/06/25
15:18 UTC
Read the original article
Hit count: 985
I'm having some issues with running mysql from terminal:
macmini:~ michael$ which mysql
/Applications/XAMPP/xamppfiles/bin/mysql
macmini:~ michael$ mysql
-bash: /usr/local/mysql/bin/mysql: No such file or directory
I had a previous installation at /usr/local/mysql/bin/mysql which no longer exists.
My path variable is as follows:
macmini:~ michael$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/Applications/XAMPP/xamppfiles/bin/:/usr/local/bin:/usr/X11/bin:/usr/local/MacGPG2/bin:/usr/texbin
Dropping to root seems to function correctly:
macmini:~ michael$ sudo bash
Password:
bash-3.2# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 66
Server version: 5.1.44 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
I seem to have found the issue - but I'm not sure how to change or remove this alias
macmini:~ michael$ type -a mysql
mysql is aliased to `/usr/local/mysql/bin/mysql'
mysql is /Applications/XAMPP/xamppfiles/bin/mysql
mysql is /Applications/XAMPP/xamppfiles/bin/mysql
© Super User or respective owner