Centos yum install mysql5.6 or above

The software library that comes with centos can only install mysql5.1, and subsequent versions will not work. You can only find a way to upgrade mysql.

1: Check whether the system comes with MySQL installed

yum list installed | grep mysql

2: Delete the mysql that comes with the system and its dependent commands:

yum -y remove mysql-libs.x86_64

3: Add rpm source to CentOS, and select the newer source command:

wget -i http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm

yum -y install mysql57-community-release-el7-7.noarch.rpm

yum repolist enabled | grep mysql

4: Install mysql server command:

yum install mysql-community-server

5: Start the mysql command:

service mysqld start

6: Check whether mysql is self-starting, and set to enable the self-starting command:

chkconfig --list | grep mysqld

chkconfig mysqld on

7: set password:

mysqladmin -uroot -pxxxxxx

Other operations are the same as other versions.

Record the pits encountered, friends who need to install, remember to pay attention:

1、 The first time I installed it under centos 7, it went smoothly. Later, several tests failed in centos 6. You need to update glibc to 2.17. Updating glibc is a big pit, everyone can do what they can.

2、 Starting from MySQL 5.6.8, the MySQL RPM installation package uses a more secure installation method. Instead of the previous password being empty, mysql will randomly assign a password to the root account, but this password can’t do anything and can only log in. Some people say The password is in /root/.mysql_secret, but I did not find it, I found it in the log file. as follows:

grep "A temporary password"/var/log/mysqld.log 

Recommended Posts

Centos yum install mysql5.6 or above
CentOS 7.2 Yum install MySQL 5.6
centos install mysql through yum
Centos install Golang 1.9 or above
CentOS7 yum install and start mysql
CentOS7.2 install Mysql5.7.13
CentOS install mysql
CentOS7 yum install and start mysql
CentOS 7 install MySQL 5.6
CentOS8 install MySQL8.0
CentOS7 install mysql8
CentOS7 install MySQL8
centos 7.5 install mysql5.7.17
CentOS7 system yum way to install MySQL5.7
CentOS6.5 offline install MySQL5.6.26
Install MySQL5.7 in centos7
Centos7 install Mysql8 tutorial
Install mysql under Centos 7
Centos7 install Mysql database
Centos7 YUM install MariaDB 10.0
Install mysql5.1 under CentOS6.5
Install mysql online on centos
Install MySQL 8.0.16 on Linux Centos
Install MySQL under Linux (CentOS 7)
Centos6 install mysql 5.7.x series
CentOS 7 yum install PHP7.3 tutorial
CentOS8 install MySQL8 (pro test)
How to install MySQL on CentOS 8
Install MATE or XFCE on CentOS 7
CentOS 7 install Nginx, PHP, MySQL packages
Install MySql with Docker in CentOS7
Install java in yum mode in Centos
Install MySQL on Linux CentOS7 (Windows)
Centos7 and centos8 install mysql5.6 5.7 8.0 so simple
1.5 Install Centos7
centos7 .*tar package to install MySQL5.7
Install mysql8.0.13 version under Linux CentOS7 system
Compile and install nodejs and yum in Centos8
Centos8 uses yum to install mongodb 4.2 method
CentOS7.4 source code compile and install MySQL8.0
Centos7 uses yum to install pip, ipython
Centos8 use yum to install rabbitmq tutorial
Install Docker CE in yum under CentOS 7
Centos6 install Python2.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
Centos7 install Python2.7
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP