CentOS 6.5 Installation MySQL5.7 RPM

Source: Internet
Author: User


First, new features

MySQL 5.7 is an exciting milestone, adding new features such as SSL, JSON, and virtual columns, based on the default InnoDB engine. MySQL5.7 does a lot of "short" operations relative to PostgreSQL and mariadb.

Features:

Original: http://mysqlserverteam.com/whats-new-in-mysql-5-7-generally-available/

Translation: Http://www.oschina.net/translate/whats-new-in-mysql-5-7-generally-available


Second, upgrade operation

1. Uninstall the old version

1.1. View MySQL

rpm-qa| grep  -qa| grep mariadb


1.2. Uninstall MySQL

RPM-E--nodeps mysql-5.1. 7-e--nodeps mysql-connector-odbc-5.1. 5r1144-7-e-- Nodeps mysql-libs-5.1. 7-qa|  grep MySQL


1.3. Delete Data Directory

ls  -L  /var/lib|  grep MySQL
RM -RF /var/lib/mysql

The data catalog can be backed up for removal. The MYSQLD service checks the existence of the data directory when it initializes: if the data directory does not exist, MYSQLD creates it, and if the data directory exists and is not an empty directory (that is, contains a file or subdirectory), Mysqld displays an error message and aborts:
[ERROR]--initialize specified but the data directory exists. Aborting.


2, Installation MySQL5.7

2.1, Decompression MySQL5.7

tar -xvf mysql-5.7. 1. El6.x86_64.rpm-bundle. Tar

By the way, the installation environment is CentOS6.5, so should choose EL6 installation package, CentOS7 should choose EL7 installation package.

If the installation package corresponds to an incorrect system version, the installation will have a dependency error about glibc:

Warning:mysql-community-libs-5.7.14-1.el7.x86_64.rpm:header V3 dsa/sha1 Signature, key ID 5072e1f5:nokey
error:failed dependencies:
Libc.so.6 (glibc_2.14) (64bit) is needed by mysql-community-libs-5.7.14-1.el7.x86_64


2.2. Install RPM packages in accordance with the dependency relationship
Dependency relationships are Common→libs→client→server

RPM-IVH mysql-community-common-5.7. 1-ivh mysql-community-libs-5.7. 1-ivh mysql-community-client-5.7. 1-ivh mysql-community-server-5.7. 1. el6.x86_64.rpm

Do not want to lazy, the client also need to install ...


Third, initialize the MySQL5.7

3.1. Start Mysqld Service

Cd.. /sbinservice mysqld start

No manual initialization, longer start-up time, wait patiently


3.2. Check mysqld operation status

Service MYSQLD Status

Now you can tell that MySQL basic installation is successful.

3.3. Find the temporary login password

VI /var/log/mysqld.log

3.4. Login

Mysql-uroot-p

CentOS 6.5 Installation MySQL5.7 RPM

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.