How to install MySQL5.6 from the official MySQL Yum Repository

Source: Internet
Author: User

On July 6, October 2013, the MySQL development team officially announced the support for the Yum repository, which means that we can now get the latest and optimum version of the MySQL installation package from this Yum library. This article will install MySQL5.6 on a newly installed CentOS6. If you are not familiar with the new features of MySQL5.6, I suggest starting with the new features of MySQL 5.6, which have many very useful features.

First, we need to download the Yum repository file from the MySQL developer website. After importing the Yum repository, a simple yumupdate command will ensure that you are running on the latest release version of MySQL5.6, includes updates to some security features. Yum also ensures that the relevant dependent libraries are imported, which will simplify the installation process. Go to http://dev.mysql.com/downloads/repo/and download Redhat Enterprise Linux 6/Oracle Linux 6.

Click linkNo thanks, just start my download.Download directly.

After the download is complete, import the Yum library to your local device:

sudo yum localinstallmysql-community-release-el6-*.noarch.rpm

This Yum library contains MySQLServer, MySQL workbench management tool, and ODBC driver. Now you can install MySQLServer simply using the following command:

sudo yum install mysql-community-server

Now, I can use Yum to easily manage MySQL updates and always get the latest version from the software library on the official website.

Appendix:

1. root password update failed

ERROR 1290 (HY000): The MySQL server is running with the -- skip-grant-tables option so it cannot execute this statement.

Solution:

[**@localhost ~]# mysqlmysql> set global read_only=0;Query OK, 0 rows affected (0.00 sec)mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)mysql> quit[**@localhost ~]# /usr/bin/mysql_secure_installation
So you can update the root password again!

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.