LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2003, 02:46 AM   #1
johnyy
Member
 
Registered: Jun 2003
Posts: 92

Rep: Reputation: 15
path ??


hello, my question it's that everytime i restart my pc, login, in the command prompt i type command mysql, it can't not find the path where the mysql it's located at
(mysql located at /usr/local/mysql/bin) ??
so i type source ~/.bash_profile, then type mysql it work... but i don't like type all that source things. it's way i could set it so it say that way when i restart ??

thanks


here my .bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/local/mysql/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"

export USERNAME BASH_ENV PATH

~
~
~
~
~
~
~
~
~
"~/.bash_profile" 15L, 255C
 
Old 10-08-2003, 04:28 AM   #2
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
I can't _really_ solve your problem, but:
Might you be running Mandrake?
I believe to have experienced a similar problem with my PS1 variable [command prompt appearance] that would only work if I put the line [PS1=xxx] in my .bashrc file.
Odd, but at least it works.
You could also add a symlink to /usr/local/mysql/bin/mysql somewhere in your /usr/bin or $HOME/bin dirs.
 
Old 10-08-2003, 05:13 AM   #3
vivekiyer
Member
 
Registered: Aug 2003
Location: AZ, USA
Distribution: Redhat 9.0
Posts: 45

Rep: Reputation: 15
Try putting it in ur .bashrc instead of ur bash_profile. I think that should help! As in add this to your .bashrc

PATH=$PATH:$HOME/bin:/usr/local/mysql/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"

export USERNAME BASH_ENV PATH

Last edited by vivekiyer; 10-08-2003 at 05:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 08:45 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 06:07 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 01:24 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 03:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration