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