LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linking Programs to the commandline (http://www.linuxquestions.org/questions/linux-software-2/linking-programs-to-the-commandline-310166/)

BorgKiller 04-05-2005 09:00 PM

Linking Programs to the commandline
 
Hello All,

Sorry for the bad topic title, but I have no-idea on how to ask this.

I have just installed mysql from its source. In order to access mysql, i have to type in the fully quailfied name (In my case, /etc/mysql/bin/mysql). Is there anyway to set it up so all I have to do is type 'mysql' at the commandline?

AltF4 04-05-2005 09:06 PM

a) add /etc/mysql/bin to your PATH variable (PATH=$PATH:/etc/mysql/bin)
b) create an alias in your .bashrc (alias startsql=/etc/mysql/bin/mysql)

BorgKiller 04-05-2005 09:10 PM

Great :D It works now

Thank You


All times are GMT -5. The time now is 09:08 PM.