CentOS 7 Installation MySQL 5.7

Source: Internet
Author: User

If you want to install MARIADB, do not look at the following, the default is. Direct Yum installation should be possible.

Mysql, the default source inside has no, can only download the RPM package to install, before choosing the wrong version of the download, can be installed, but not used (in fact, it will not be used), all kinds of pits ah anyway is, pit a day more time. In order to save time to hurry up, and then a simple and straightforward method, I hope to help everyone.

1. Download RPM Package

In http://dev.mysql.com/downloads/mysql/

CentOS 7 Please select

Red Hat interprise linux/oracle

The suffix is. Rpm-bundle.tar

Download good after (MySQL for download good file is generally Mysql-xxxxx.rpm-bundle.tar)

[Email protected] local]# Tar-XVF Mysqlmysql-community-minimal-debuginfo-5.7. --1. El7.x86_64.rpmmysql-community-embedded-5.7. --1. El7.x86_64.rpmmysql-community-libs-compat-5.7. --1. El7.x86_64.rpmmysql-community-libs-5.7. --1. El7.x86_64.rpmmysql-community-embedded-compat-5.7. --1. El7.x86_64.rpmmysql-community-devel-5.7. --1. El7.x86_64.rpmmysql-community-server-5.7. --1. El7.x86_64.rpmmysql-community-server-minimal-5.7. --1. El7.x86_64.rpmmysql-community-client-5.7. --1. El7.x86_64.rpmmysql-community-test-5.7. --1. El7.x86_64.rpmmysql-community-common-5.7. --1. El7.x86_64.rpmmysql-community-embedded-devel-5.7. --1. el7.x86_64.rpm

Because of dependencies, we first install mysql-community-common-5.7.20-1.el7.x86_64.rpm (5.7.20 is the version number I installed)

RPM-IVH mysql-community-common-5.7.20-1.el7.x86_64.rpm

If you are prompted for the following content

File/usr/share/mysql/charsets/swe7.xml from install of mysql-community-common-5.7.20-1.el7.x86_64 conflicts with file From Package mariadb-libs-1:5.5.56-2.el7.x86_64

There are hints inside.

Mariadb-libs

That should be the existence of a remnant party of MARIADB.

Grep-i mariadb

Unloading

Rpm-ev mariadb-libs-5.5.56-2.el7.x86_64--nodeps

Don't forget to install the top package again.

Go on

Client Installation

Start MySQL

Service mysqld Start

View status

Service MYSQLD Status

OK, it's OK.

Cat/var/log/mysqld.log

There is a password (look for password on the line)

Landing

Mysql-uroot-p

Enter password

Welocome MySQL ' s world.

If you need to change your password

SET PASSWORD = PASSWORD (' mysqlpassword123+-*/123123 ');

CentOS 7 Installation MySQL 5.7

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.