LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 04-05-2005, 09:00 PM   #1
BorgKiller
Member
 
Registered: Dec 2002
Location: Cyberspace, address block 212
Distribution: FreeBSD 6.1-RELEASE
Posts: 34

Rep: Reputation: 15
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?
 
Old 04-05-2005, 09:06 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
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)
 
Old 04-05-2005, 09:10 PM   #3
BorgKiller
Member
 
Registered: Dec 2002
Location: Cyberspace, address block 212
Distribution: FreeBSD 6.1-RELEASE
Posts: 34

Original Poster
Rep: Reputation: 15
Great It works now

Thank You
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Commandline legth problem linking a shared library DavePrince Linux - Software 0 07-20-2005 08:19 AM
compiling and linking C programs node047 Linux - General 2 04-20-2005 11:47 AM
Problem starting programs from commandline Error1312 Slackware 10 06-20-2004 09:16 AM
creating graphical front ends to commandline programs seidren Programming 5 02-05-2004 02:21 PM
Linking to programs Ben Sytko Linux - Newbie 3 02-26-2003 06:28 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration