CentOS Linux 5/6 Install Mysql Database Server

www.l‮uttua‬ri.com
CentOS Linux 5/6 Install Mysql Database Server

To install the MySQL database server on CentOS Linux 5 or 6, you will need to follow these steps:

  1. Install the MySQL repository:
wget http://repo.mysql.com/mysql-community-release-el5.rpm
sudo rpm -Uvh mysql-community-release-el5.rpm

Note: If you are using CentOS Linux 6, you will need to use the following command instead:

wget http://repo.mysql.com/mysql-community-release-el6.rpm
sudo rpm -Uvh mysql-community-release-el6.rpm
  1. Install the MySQL server and client packages:
sudo yum install mysql-server mysql
  1. Start the MySQL server:
sudo service mysql start
  1. Set the MySQL server to start automatically at boot:
sudo chkconfig mysql on
  1. Secure the MySQL installation:
mysql_secure_installation

This will run a script to secure the MySQL installation by setting a root password, removing anonymous users, and disabling remote root login.

After completing these steps, the MySQL database server should be installed and configured on your CentOS Linux system. You can then use the mysql command-line client or a graphical tool such as phpMyAdmin to connect to the server and manage your databases.

For more information on installing and configuring the MySQL database server on CentOS Linux, you can consult the MySQL documentation or seek guidance from the MySQL community.

Created Time:2017-10-16 14:38:40  Author:lautturi