This document provides instructions for installing and configuring the MySQL database server on Red Hat Enterprise Linux (RHEL) 4, 5, and 6. It outlines how to install MySQL using the RHN or CentOS repository, start the MySQL service, set the root password, test connectivity, and configure options in the my.cnf file such as the query cache, buffer sizes, logging, and caches. The configuration options specified aim to optimize performance by caching queries, buffering data, logging slow queries, and setting resource limits.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
38 views
Redhat Enterprise Linux
This document provides instructions for installing and configuring the MySQL database server on Red Hat Enterprise Linux (RHEL) 4, 5, and 6. It outlines how to install MySQL using the RHN or CentOS repository, start the MySQL service, set the root password, test connectivity, and configure options in the my.cnf file such as the query cache, buffer sizes, logging, and caches. The configuration options specified aim to optimize performance by caching queries, buffering data, logging slow queries, and setting resource limits.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
Redhat Enterprise Linux (RHEL) Install and
Configure MySQL Database Server
by NI X CRAFT on MARCH 20, 2007 42 COMMENTS LAST UPDATED JUNE 22, 2012 in CENTOS, FEDORA LI NUX, LI NUX
How do I install the MySQL database server under Redhat Enterprise Linux 4 / 5 / 6?
You can install mysql using any one of the following medium. a) Install MySQL package using RHN or CentOS repo. b) Install MySQL rpms from CD/DVD media. Red Hat Enterprise Linux install Mysql database server Type the following command to install mysql server using the RHN or CentOS repo: Redhat Enterprise Linux - RHEL 5 / 6 MySQL installation Type the following command as root user: # yum install mysql-server mysql Redhat Enterprise Linux - RHEL 4/3 MySQL installation Type the following command as root user: # up2date mysql-server mysql Start MySQL Service To start the mysql server type the following command: # chkconfig mysqld on # /etc/init.d/mysqld start Setup the mysql root password Type the following command to setup a password for root user: # mysqladmin -u root password NEWPASSWORD Test the mysql connectivity Type the following command to connect to MySQL server: $ mysql -u root -p Configure the mysql server Edit /etc/my.cnf, enter (please note that following are sample values, you need to adjust them as per your requirements): # vi /etc/my.cnf You can configure mysql query cache as follows (add in [mysqld] section) to speed up mysql: