Centos7 and centos8 install mysql5.6 5.7 8.0 so simple

Install mysql5.6

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

rpm -ivh mysql-community-release-el7-5.noarch.rpm

yum install mysql-server -y

service mysqld start

service mysqld status

systemctl enable mysqld.service

grep "password" /var/log/mysqld.log to find the initial password, if you can’t find the file, try grep "password" /var/log/mysql/mysqld.log

mysqladmin -uroot -p password NewPassword Enter the initial password to reset the password

Install mysql5.7

wget http://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm

rpm -ivh mysql57-community-release-el7-11.noarch.rpm

yum install mysql-server -y

service mysqld start

service mysqld status

systemctl enable mysqld.service

grep "password" /var/log/mysqld.log to find the initial password, if you can’t find the file, try grep "password" /var/log/mysql/mysqld.log

mysqladmin -uroot -p password NewPassword Enter the initial password to reset the password

Install mysql8.0

wget http://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm

rpm -ivh mysql80-community-release-el7-3.noarch.rpm

yum install mysql-server -y

service mysqld start

service mysqld status

systemctl enable mysqld.service

grep "password" /var/log/mysql/mysqld.log to find the initial password, if the file is not found, try grep "password" /var/log/mysqld.log

mysqladmin -uroot -p password NewPassword Enter the initial password to reset the password

In order to download faster, you can replace the URL with the Tencent source address

The specific address needs to open the following URL to find the precise URL

http://mirrors.tencent.com/mysql/yum/

If the server is Tencent Cloud, you can replace the public domain name with the intranet domain name, which is faster

Recommended Posts

Centos7 and centos8 install mysql5.6 5.7 8.0 so simple
CentOS7 yum install and start mysql
CentOS Yum compile and install MySQL 5.6
CentOS7.2 install Mysql5.7.13
CentOS7 install MySQL
CentOS7 yum install and start 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
CentOS7.5 source code compile and install mysql5.7.29
Centos7 compile and install MySQL8 problem record
CentOS7.4 source code compile and install MySQL8.0
Install centos7 and connect
CentOS6.5 offline install MySQL5.6.26
Install MySQL5.7 in centos7
Install mysql5.7 under CentOS7
CentOS 7.2 Yum install MySQL 5.6
Centos7 install Mysql8 tutorial
Centos manually install mysql8
Install mysql under Centos 7
Centos7 install Mysql database
Install mysql5.1 under CentOS6.5
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
Install mysql online on centos
centos7 install python3 and ipython
Centos mysql installation and configuration
Know Linux and install CentOS
CentOs7.3 compile and install Nginx 1.9.9
CentOS 7 install Mono and MonoDevelop
CentOS6.5 install Java 8 and Tomcat8
Install MySQL 8.0.16 on Linux Centos
Install MySQL under Linux (CentOS 7)
Centos6.5 install and configure mongodb
CentOS7 install python3 and pip3
CentOS7 install OracleJDK and JRE
CentOS6.5 install Java 8 and Tomcat8
Centos6 install mysql 5.7.x series
CentOS6 install and crack Jira 7
CentOS6.5 install Java 8 and Tomcat8
Centos7 compile and install ntp-4.2.8p11
CentOS 6.9 compile and install python
CentOS6 install and crack confluence
CentOS 6 compile and install python 3
CentOS6 install and crack Jira 7
CentOS8 install MySQL8 (pro test)
Centos compile and install LAMP (apache-2.4.7 + mysql-5.5.35 + php 5.5.8) + Redis
Centos 7 install jdk and package service service
How to install MySQL on CentOS 8
Install and configure keepalived under CentOS 5.9
Compile and install LAMP under Centos 5.2
CentOS 8 install Git and basic configuration
CentOS 7 install Nginx, PHP, MySQL packages
Install and configure MySQL on Ubuntu
Install MySql with Docker in CentOS7
CentOS 6.x compile and install Nginx
CentOS7 compile and install L(A|N)MP environment
CentOS7.3 install iptables and detailed use
Install MySQL on Linux CentOS7 (Windows)