Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I found this article that explains how to install MySQL without root access. However, on the MySQL download page is no download link for Ubuntu. Which one should I choose in this case?

If it has a "generic linux" choice that claims to be architecture-independent, why does it need all the other dependent ones?

Lastly, I don't know its dependencies. Since I cannot use a package manager (because I don't have root - Yargs!), I need to resolve everything manually. How do I do that?

share|improve this question
    
Why is using the package manager a problem? Is this your own Ubuntu installation or are you accessing a public or corporate server? If private, you can just use sudo. Then is should be as easy as sudo apt-get install mysql-server-5.5 to install MySql on Ubuntu without root access (just use your own user's password if you installed Ubuntu yourself). –  Werner Apr 4 at 6:53
    
As mentioned in the title, I don't have root access to the machine. If I try to sudo, it tells me: "<my user name> is not in the sudoers file. This incident will be reported." –  Domi Apr 4 at 7:02
    
Then you must not be the system admin? In that case ask the system admin to add your user to the sudoers file. –  Werner Apr 4 at 7:03
    
I can't. Its a university machine. I already talked to the admin and he said he would generally not recommend using mysql because its such a pain to install without root (and evidently, they are not willing to install it for me). However, I need it. –  Domi Apr 4 at 7:06
    
Then you unfortunately need to resolve that with them, there is no trivial way of bypassing (effectively, hacking) the restrictions that are in place for a server that you do not control. If you need access to MySql consider installing on your own (or a friend's) conputer instead? For pure educational purposes you might consider free MySql database access to play around: freesqldatabase.com/freemysqldatabase –  Werner Apr 4 at 7:09

1 Answer 1

up vote 1 down vote accepted

Without a package manager you can download source code. At the website you posted choose "Source Code" and then take the generic one: "Generic Linux (Architecture Independent), Compressed TAR Archive". Now you have to compile the source code. There are plenty of guides how to compile mysql manually.


Another option would be to download the Debian package from the list and unpack it manually:

ar x package.deb
tar xzf data.tar.gz

Then you find the binaries in the folder you unpacked the data.tar.gz.


But be aware, it is a pain, because you have to do this with all the libraries needed by mysql, too

share|improve this answer
    
Why not install the Generic Linux binary version instead of the Debian one? Why are Debian packages compatible with Ubuntu? –  Domi Apr 4 at 7:07
1  
Because Ubuntu is based on debian –  chaos Apr 4 at 7:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.