How to install Mysql 5.6.21 under Centos 6.5 _mysql

Source: Internet
Author: User

Create a directory where you need to download the RPM package package:

# mkdir-p/taokey/tools/

See if the system has a MySQL package if it has been deleted

# rpm-qa|grep MySQL
mysql-libs-5.1.71-1.el6.x86_64
mysql-server-5.1.71-1el6.x86_64
# yum Remove Mysql-server mysql-libs
#rpm-qa|grep MySQL
#

This means that there is no MySQL package if the MySQL has been installed after the removal of the package also need to operate

# Find/-name MYSLQ
/var/lib/mysql
/var/lib/mysql/mysql
/var/lock/subsgs/myslq
# rm-rf/var/lib/ MySQL
# rm-rf/vra/lib/mysql/mysql

Check to see if the MYSLQ installation directory is clean at once

# Find/-name MySQL

Also need to download 3 packages on the website:

Install these three packages:

# RPM-IVH mysql-server-5.6.21-1.rhel5.x86_64.rpm
#rpm-ivh mysql-client-5.6.21-1.rhel5.x86_64.rpm
# RPM-IVH mysql-devel-5.6.21-1.rhel5.x86_64.rpm

If the error is installed Libaio package in the installation

#yum-y Install Libaio

Initializing MySQL

#/usr/bin/mysql_install_db

View MySQL's initial password

# Less/root/.mysql and press the TAB key and then press the enter colon after a string of characters is the MySQL password

Login MySQL Modify password

Mysql-uroot-pf6k3v_xggfolqein

Enter MySQL to modify password

mysql> SET Password=password (' 123.COM ');
Mysql> Exit
Bye

Login to see if the password was modified successfully:

# mysql-uroot-p123.com
set mysql boot up
# chkconfig MySQL on
# chkconfig MySQL--list

Install MySQL 5.6.21 to this installation complete, thank you

The above is a small set to introduce the CentOS 6.5 under the installation of MySQL 5.6.21 method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.