Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install mysql 8.0.13 in a Centos7 environment

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article shows you how to install mysql 8.0.13 in the Centos7 environment. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Environment description

Operating system: Centos7.4 (CentOS-7-x86_64-Minimal-1804.iso)

Mysql:mysql8.0.13

Uninstall the mariadb-lib that comes with the system

View mariadb version

Rpm-qa | grep mariadb mariadb-libs-5.5.56-2.el7.x86_64

Uninstall mariadb

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

Installation depends on the environment

Yum install-y openssl-devel.x86_64 openssl.x86_64 yum install-y libaio.x86_64 libaio-devel.x86_64 yum install-y perl.x86_64 perl-devel.x86_64 yum install-y perl-JSON.noarch yum install-y autoconf yum install-y wgetyum install-y net-tools

Turn off the firewall

Systemctl stop firewalld.servicesystemctl disable firewalld.service

Disable selinux

Vi / etc/selinux/config

Change SELINUX=enforcing to SELINUX=disabled

Reboot restart the machine

Download the mysql installation package collection from the NetEase image

Download the complete installation package and unzip it

Wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-8.0.13-1.el7.x86_64.rpm-bundle.tartar-xvf mysql-8.0.13-1.el7.x86_64.rpm-bundle.tar

Download the necessary installation package (choose one of the two)

Wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-common-8.0.13-1.el7.x86_64.rpmwget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-libs-8.0.13-1.el7.x86_64.rpmwget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-client-8.0.13-1.el7.x86 _ 64.rpmwget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-server-8.0.13-1.el7.x86_64.rpm

Install sequentially

Necessary installation (pay attention to sequence)

Install common

Installation of lib depends on common to ensure that mariadb has been uninstalled

Dependent on libs

Dependent on client, common

Rpm-ivh mysql-community-common-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-libs-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-client-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-server-8.0.13-1.el7.x86_64.rpm

Unnecessary installation (pay attention to the order)

Rpm-ivh mysql-community-libs-compat-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-embedded-compat-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-devel-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-test-8.0.13-1.el7.x86_64.rpm

Initialize the database

Mysqld-initialize-console

Directory authorization, otherwise startup fails

Chown-R mysql:mysql / var/lib/mysql/

Start the service

Systemctl start mysqld

Encrypt

Mysql_secure_installation

Other

Other operations are the same as yum installation and are not repeated.

Install all modules of perl

Yum install-y perl-Module-Install.noarch the above is how to install mysql 8.0.13 in a Centos7 environment. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report