Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded MySQL-server-5.5.15-1.linux2.6.i386.rpm from But I don't know how to install it.

share|improve this question

closed as off topic by Ringtail, RobotHumans, bodhi.zazen, fossfreedom Apr 5 '12 at 8:33

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Why don't you install mysql-server from the repos? – N.N. Aug 10 '11 at 10:39
There is a similar question a about upgrade. The instruction may help you in fresh installation too.… – Chakra Aug 10 '11 at 10:40
fyi: rpm is for redhat. you are better of with a .deb to install it under Ubuntu (and you can use ubuntu software center for that). – Rinzwind Aug 10 '11 at 18:42

If you want 5.5 you need to download the tar.gz version and not the rpm from here: and follow the instructions from this link: Relevant portions from this instruction (but do read the link itself too):

2.2. Installing MySQL from Generic Binaries on Unix/Linux Oracle provides a set of binary distributions of MySQL. These include binary distributions in the form of compressed tar files (files with a .tar.gz extension) for a number of platforms, as well as binaries in platform-specific package formats for selected platforms.


This section covers the installation of MySQL from a compressed tar file binary distribution. For other platform-specific package formats, see the other platform-specific sections. To install and use a MySQL binary distribution, the basic command sequence looks like this:

shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

A more detailed version of the preceding description for installing a binary distribution can be found at the link.

share|improve this answer

You need to convert the .rpm to a .deb file for it to work with Ubuntu. You can do this using alien. Then install the .deb file with dpkg -i.

It is much easier to just use the repositories, or download the .deb files from the site ( if there are any).

share|improve this answer

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