About Linux FAQ

Browse More FAQs:

Redhat Enterprise Linux (RHEL) install and configure MySQL database

Posted by Vivek Gite [Last updated: March 20, 2007]

Q. How do I install MySQL database server under Redhat Enterprise Linux 5?

A. You have two choices:

a) Install MySQL package using RHN

b) Install MySQL rpm from CD/DVD

The best way to install up2date package is to use RHN (Red Hat Network)

Redhat Enterprise Linux - RHEL 5 MySQL installation

Type the following command as root user:
# yum mysql-server mysql
Note above yum command works with Fedora core and Cent OS Linux.

Redhat Enterprise Linux - RHEL 4/3 MySQL installation

Type the following command as root user:
# up2date mysql-server mysql

Start MySQL Service

To start mysql server type the following command:
# chkconfig mysqld on
# /etc/init.d/mysqld start

Setup mysql root password

Type the following command to setup a password for root user:
# mysqladmin -u root password NEWPASSWORD

Test mysql connectivity

Type the following command to connect to MySQL server:
$ mysql -u root -p

See also

  • See all mysql related FAQ and tips

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. prof.swati vishnu Says:

    how to install mysql on Redhat Enterprise Linux 5?

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.