osx - In .bash_profile already set the path but still got '-bash: mysql: command not found' -


i'm quite frustrated got error message trying use ipython or mysql terminal in osx. used work fine, got error message. if navigated mysql installed, still error message:

bruces-macbook-pro:bin bruce$ pwd /usr/local/mysql/bin bruces-macbook-pro:bin bruce$ ls innochecksum            mysqlbinlog lz4_decompress          mysqlcheck my_print_defaults       mysqld myisam_ftdump           mysqld-debug myisamchk           mysqld_multi myisamlog           mysqld_safe myisampack          mysqldump mysql               mysqldumpslow mysql_client_test_embedded  mysqlimport mysql_config            mysqlpump mysql_config_editor     mysqlshow mysql_embedded          mysqlslap mysql_install_db        mysqltest_embedded mysql_plugin            mysqlxtest mysql_secure_installation   perror mysql_ssl_rsa_setup     replace mysql_tzinfo_to_sql     resolve_stack_dump mysql_upgrade           resolveip mysqladmin          zlib_decompress bruces-macbook-pro:bin bruce$ mysql -bash: mysql: command not found 

i did search, , noticed should add path $path variable in .bash_profile, use less .bash_profile check if on path, below got:

export path="/usr/local/mysql/bin:$path"  export path="/users/bruce/anaconda2/bin:$path"  export path="/library/frameworks/python.framework/versions/2.7/bin:$path"  export path="/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages:$path"  export path="/library/python/2.7/site-packages"  export path="/opt/local/bin:/opt/local/sbin:$path"  export path="/users/bruce/anaconda/bin:$path"  export path="/usr/local/bin:$path"  export path="/usr/bin:$path"  export path="/bin:$path"  export path="/usr/sbin:$path"  export path="/sbin:$path"  export path="/opt/x11/bin:$path"  .bash_profile (end) 

(notice: have several .bash_profilexxxx files here under home folder. need modify of them?

.bash_profile .bash_profile-anaconda.bak .bash_profile-anaconda2.bak .bash_profile.macports-saved_2015-12-29_at_23:07:52 .bash_profile.pysave 

)

and seems can't find .bash_profile.pysave directly under home folder, available use ls -a command? if need modify file, how?

i found out why happening. have 2 disks in laptop. , many of files backed in older disk have same name. .bash_profile edited on older disk, not under home folder.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -