image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Closed Thread
 
Thread Tools
  #1  
Old April 6th, 2008, 08:19 PM
Registered User
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Stormwulf is on a distinguished road
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  
Old April 8th, 2008, 12:26 AM
Registered User
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
j2bryson is on a distinguished road
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  
Old April 8th, 2008, 10:46 AM
Registered User
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Stormwulf is on a distinguished road
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
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:29 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.