How to install MySQL5.6 from the official MySQL yum repository

Source: Internet
Author: User

In October 2013, the MySQL development team officially announced support for the Yum repository, which means we can now get the latest and best version of the MySQL installation package from this Yum library. This article installs MySQL5.6 on a newly installed CentOS6, and if you are unfamiliar with the new features of MySQL5.6, I recommend 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 and after importing the Yum Library, a simple yumupdate command will ensure that you are running on the latest release of MySQL5.6, including some updates on security features. Yum will also ensure that the relevant dependent libraries are imported, which will make our installation process simple. Go to http://dev.mysql.com/downloads/repo/and download Redhat Enterprise Linux 6/oracle Linux version 6.

Click on the link No Thanks, just start my download. Download it directly.

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

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

This Yum library contains Mysqlserver,mysql Workbench management tools and ODBC drivers, which can now be easily installed with the following command mysqlserver:

?
1 sudo yum install mysql-community-server

Now I can use Yum to simply manage MySQL updates and ensure that the latest releases are always available from 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.

Workaround:

?
1 2 3 4 5 6 7 [**@localhost ~]# mysql mysql> 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 re-update the root password!

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.