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.

To my downloads directory, I have unpacked the MySQL-server-5.6.11-2.linux_glibc2.5.i386.rpm. There is now a /usr directory with /bin, /lib, /sbin, and /share within the /usr. There is also a /etc directory with /init.d and /logrotate.d directories within the /etc.

  • Do I disperse these directories/files in the appropriate "/" root directory location(s)?
  • Where can I find clear steps on how to install MySQL on Ubuntu? (I have version 13.04)

From the MySQL site, it seemed easier to do this for Windows since they are able to use the MySQL Installer.

share|improve this question
    
which OS you are using ? –  Qasim May 28 '13 at 1:33
    
OS is Ubuntu 13.04 –  David May 28 '13 at 1:37

2 Answers 2

up vote 3 down vote accepted

Installation

To install MySQL, run the following command from a terminal prompt:

sudo apt-get install mysql-server mysql-client

During the installation process you will be prompted to enter a password for the MySQL root user.

Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:

sudo netstat -tap | grep mysql

When you run this command, you should see the following line or something similar:

tcp 0 0 localhost:mysql : LISTEN 2556/mysqld

If the server is not running correctly, you can type the following command to start it:

sudo service mysql restart

More info HERE

share|improve this answer
    
Excellent. That seems pretty clear and straightforward. Thank you penreturn. –  David May 28 '13 at 1:56

Forget this .rpm, it's for Red Hat/Fedora.

All you have to do is open a terminal (Ctrl+Alt+T) and run:

sudo apt-get install mysql-server

Or you can search for "mysql" in the Software Center.

share|improve this answer

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.