View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-05-2009, 12:02 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
Can I install Mysql binary as non-root?

If I can, could any one explain how to do so?
Old 07-05-2009, 01:33 AM   #2
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
You can usually install anything into your "home" directory, it's just a bit tricky.
I have added this to my file /etc/profile (using root):
if [ -d $HOME/.local/bin ] ; then
    export PATH="$PATH:$HOME/.local/bin"
if [ -d $HOME/.local/lib ] ; then
    export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
(Be careful with the .local/lib directory, as viruses might be implemented in libs you install.)
Now, when you compile stuff from source, you should pass the parameter --prefix=$HOME/.local to the command ./configure.
When you have binary files you want to execute (which don't depend on installed data), put them in your ~/.local/bin directory. Then you can execute them from the terminal/console/shell/... or your desktop (tested on Gnome).

Any further questions?
Old 07-05-2009, 06:03 AM   #3
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,502

Rep: Reputation: 121Reputation: 121
you probably have to edit the installing shell script as it will not install mysqld to your home directory by default. You can export the $PATH variable and $LD_LIBRARY_PATH variable the way TITiAN explained.

@TITiAN: zijian spoke of binaries, not of compiling sources. In case of mysqld it is usually better to take the binaries compiled with intel compiler.

Anyway I never tested what I said. Maybe you actually have to compile it...

Last edited by j-ray; 07-05-2009 at 06:06 AM.


binaries, install, mysql, nonroot, program, root, software

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
Unable to set root password on new mysql install Arty Ziff Linux - Server 2 01-22-2009 11:17 PM
Installing MySQL From Binary matsko Linux - Software 1 08-12-2007 04:48 AM
Do I need binary 1 and binary 2 dvd iso for base install? salah-ad-din Debian 5 08-15-2006 04:43 PM
MySQL deleted root account and can't re-install... ivj Linux - Software 2 07-09-2004 10:51 PM
mysql binary uninstall steps... tuka Linux - Newbie 2 09-15-2003 04:33 AM

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

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