Search code examples
mysqlmacosterminal

$PATH not being saved after I leave terminal


I just installed mysql server 5.5.20 on my OS X Lion and everything works fine.Now,every time I go into terminal I have to explicitly write:

PATH=${PATH}:/usr/local/mysql/bin

because is not being saved after I leave the command line.I have no idea why such could be.

Ideas?


Solution

  • You have to add

    PATH=${PATH}:/usr/local/mysql/bin
    export PATH
    

    to your ~/.bash_profile or .bashrc (or use similar option when using different shell).

    If you want it to be system wide, you should upgrade: /etc/bash.bashrc (on archilnux, can wary on your distribution)