April 6th, 2008, 08:19 PM #1
Bash login problem
I installed Mysql on Leopard using the tutorial over at HiveLogic
Everything went fine and I have a working Mysql server.
However if I want to use the Mysql command tool, I have to run . ~/.bash_login every time I open a new Terminal window (I'm using iTerm, but the same happens with Terminal.app), mysql isn't recognized until I do this.
I added the PATH line in bash_login, but it seems like it doesn't gets loaded when I open a new terminal window.
Is there any way to automate this process? What can I do?
Thanks in advance.
April 8th, 2008, 12:26 AM #2
I think for some reason (maybe even one I once figured out, but maybe just a dialect thing) os x ignores .bash_login -- I switched to using .bashrc instead and have no problems now.
April 8th, 2008, 10:46 AM #3
Hey Joanna, thanks for replying.
I think you're right, after reading the help on bash, I found out it reads configuration parameters from 3 different files when logging in: ~/.bash_profile , ~/.bash_login and ~/.profile
To solve my particular problem, I opened ~/.bash_profile and I inserted the path to Mysql there and it worked