Bash login problem

Discussion in 'Mac OS X System & Mac Software' started by Stormwulf, Apr 6, 2008.

Thread Status:
Not open for further replies.
  1. Stormwulf

    Stormwulf Registered

    Joined:
    Apr 6, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi all,

    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.
     
  2. j2bryson

    j2bryson Registered

    Joined:
    Apr 8, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    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.

    Joanna
     
  3. Stormwulf

    Stormwulf Registered

    Joined:
    Apr 6, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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 :)
     
Thread Status:
Not open for further replies.

Share This Page