Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 3 of 3
  1. #1
    Stormwulf is offline Registered User
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Bash login problem

    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. #2
    j2bryson is offline Registered User
    Join Date
    Apr 2008
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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. #3
    Stormwulf is offline Registered User
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •