Home >> MySQL >> MySQL Installation instruction for Linux Operating System

MySQL Installation instruction for Linux Operating System

mysql

Dowload MySQL RPM files from http://dev.mysql.com/downloads/mysql/5.1.html

Download the following files from the “Linux x86 generic RPM (dynamically linked) downloads” option.

1. Server
2. Client programs
3. Shared client libraries
4. Libraries and header files

Now as root, install the rpm’s:
rpm -i MySQL-server-5.1.20-0.i386.rpm
rpm -i MySQL-client-5.1.20-0.i386.rpm
rpm -i MySQL-devel-5.1.20-0.i386.rpm
rpm -i MySQL-shared-5.1.20-0.i386.rpm

(If you already have an earlier version of MySQL installed, you should use “rpm -U” instead of “rpm -i”, and you may need to add “–nodeps” to several of the rpm commands. But don’t worry about it unless “rpm -i” complains!).

Now enter the command to set the User name and Passwords

# mysqladmin -u root

Now type mysql
you will get

Mysql> command prompt.
Now you can do your work.

2 comments

  1. Wow this is a great resource.. I’m enjoying it.. good article

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*