-   Linux - Software (
-   -   Linking Programs to the commandline (

BorgKiller 04-05-2005 10: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 10: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 10:10 PM

Great :D It works now

Thank You

All times are GMT -5. The time now is 08:36 AM.