Installing MySQL 5.6 on CentOS 6.X

Step 1: CentOS 6.X Install the MySQL DB

# yum -y update

# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm && sudo rpm -ivh mysql-community-release-el6-5.noarch.rpm

# yum -y install mysql-server

Step 2: Start MySQL

# service mysqld start

Step 3: Set a password for the root user and set other security-related options. Enter the following command and follow the prompts on your screen to complete the configuration.

# mysql_secure_installation

Step 4: Verify the MySQL server version.

# mysql -u root -p

Messages similar to the following display:

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.6.23 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.