Install MySQL5.7 in centos7

  1. Download the mysql source installation package
    wget dev.mysql.com/get/mysql57…

2. Install mysql source##

yum localinstall mysql57-community-release-el7-8.noarch.rpm

3. Check if the mysql source is installed successfully##

yum repolist enabled | grep "mysql.-community."

4. Install MySQL

yum install mysql-community-server

5. Start MySQL service##

systemctl start mysqld

6. Set boot up##

systemctl enable mysqld

systemctl daemon-reload

7. Modify root local login password##

View temporary password

grep 'temporary password' /var/log/mysqld.log

Log in to the database (use the temporary password above)

mysql -uroot-p

change Password

ALTER USER 'root'@'localhost' IDENTIFIED BY'new password';


This completes the installation of MySQL under centos

Recommended Posts

Install MySQL5.7 in centos7
CentOS7.2 install Mysql5.7.13
CentOS7 install MySQL
CentOS install mysql
CentOS7 install mysql
CentOS 7 install MySQL 5.6
CentOS8 install MySQL8.0
CentOS7 install mysql8
CentOS7 install MySQL8
centos 7.5 install mysql5.7.17
Install MySql with Docker in CentOS7
CentOS6.5 offline install MySQL5.6.26
Install php in centos
Install mysql5.7 under CentOS7
CentOS 7.2 Yum install MySQL 5.6
Centos7 install Mysql8 tutorial
Centos manually install mysql8
Install redis5.0 in CentOS7
Install mysql under Centos 7
Centos7 install Mysql database
Install mysql5.1 under CentOS6.5
Install mysql online on centos
centos install mysql through yum
Install MySQL 8.0.16 on Linux Centos
Install MySQL under Linux (CentOS 7)
Centos6 install mysql 5.7.x series
1.5 Install Centos7
CentOS8 install MySQL8 (pro test)
How to install MySQL on CentOS 8
CentOS7 yum install and start mysql
Install JDK8 in rpm on CentOS7
CentOS Yum compile and install MySQL 5.6
Minimal install JDK 1.8 tutorial in CentOS 7
CentOS 7 install Nginx, PHP, MySQL packages
How to install PHP7.4 in CentOS
How to install mysql in Ubuntu 14.04
Install Percona Server database (in CentOS 8)
Install java in yum mode in Centos
Install MySQL on Linux CentOS7 (Windows)
CentOS7 yum install and start mysql
Centos7 and centos8 install mysql5.6 5.7 8.0 so simple
Centos yum install mysql5.6 or above
How to install HDP2.6 in Centos7.2
Install Centos7 operating system in Docker
How to install mysql in Ubuntu 14.04
centos7 .*tar package to install MySQL5.7
Install and configure FreeIPA in Centos7
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS install Redmine
Centos7 install Python 3.6.
Centos7 install protobuf
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