Redhat Enterprise Linux (RHEL) install and configure MySQL database
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
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:
- PHP not connecting to a MySQL database server
- Securing MySQL server
- Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- How do I access MySQL server from the shell prompt (command line)?
- MySQL startup script under BSD/Linux
Discussion on This FAQ
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!



November 17th, 2007 at 8:55 am
how to install mysql on Redhat Enterprise Linux 5?