当前位置:网站首页>Linux Installation mysql8.0.29 detailed tutorial
Linux Installation mysql8.0.29 detailed tutorial
2022-07-28 01:58:00 【Guihai】
I uninstalled my years of companionship above mysql5.7, Now ready to install mysql8.0.
One 、 Sign in mysql Download from the official website mysql Installation package ( My system is Centos7)
MySQL :: Download MySQL Community Server

1) According to the number of digits of your computer and you cpu Architecture compliant installation

2)) Find it after selection RPM Bundle Click to download

3) In the red box, you can not log in mysql Account installation .
Two 、 install mysql8.0
1、 Log in to your Linux, Whether it's cloud server or virtual machine

2、 Use the tool handle window Of mysql File transfer to linux End

These bags are in turn , If it's too troublesome, you can also send the whole compressed packet
1. mysql-community-common
2. mysql-community-client-plugins
3. mysql-community-libs
4. mysql-community-client
5. mysql-community-icu-data-files
6. mysql-community-server
3、 Check your centos7 Is there a mariadb
rpm -qa |grep mariadbI uninstalled this before, so I didn't respond

because centos7 System comes with mariadb This database , If you don't uninstall it, it may be associated with mysql Database conflict ,
4、 Find you put it mysql The location of the file unzip it
1) If you are sending the whole compressed package, decompress it first
tar -xvf And yours mysql file name 2) Like me, it can reach you linux Check the directory of to see if there is any error

5、 In turn, installation mysql Of rpm
Because there is a dependency between packages , Here is their installation sequence
rpm -ivh mysql-community-common-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-plugins-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-icu-data-files-8.0.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.29-1.el7.x86_64.rpm

Four 、 To configure Mysql
1、 initial mysql
mysqld --initialize --console 
2、 modify mysql The permission of is convenient for setting and tapping commands in the future
chown -R mysql:mysql /var/lib/mysql/ 
3、 start-up mysql Look at the temporary password configured by the system

4、 Log in to your mysql Enter the password to see if it works. The following figure is the success page

5、 Amend your mysql password
alter user 'root'@'localhost' identified by ' New password '
Log in again mysql Enter some sql Command to see if it is normal

6、 Configure graphical myql
1、 Turn off the firewall before configuring
systemctl disable firewalld.service2、 According to your mysql Password and virtual machine ip Address configuration

And then it's done .

边栏推荐
猜你喜欢

JS what situations can't use json Parse, json.stringify deep copy and a better deep copy method

Zhi Huijun, Huawei's "genius youth", has made a new work, building a "customized" smart keyboard from scratch

数字经济才是未来经济发展的核心

白质脑功能网络图论分析:抑郁症分类和预测的神经标记

IIC read / write eefprom

Linux安装mysql8.0.29详细教程

Summary: Prometheus storage

存储成本降低 80%,有赞数据中台成本治理怎么做的?

Flink's real-time data analysis practice in iFLYTEK AI marketing business

What is method and methodology: understand the underlying logic of self-improvement
随机推荐
存储成本降低 80%,有赞数据中台成本治理怎么做的?
Interview question 01.06. string compression
2022 software testing skills robotframework + selenium library + Jenkins web Keyword Driven Automation practical tutorial
Gbase 8C configuration setting function
Load balancing SLB
Digital economy is the core of future economic development
Gbase 8C snapshot synchronization function
集合/容器
The petrochemical industry is facing the tide of rising prices, and the digital dealer distribution system platform enables dealers and stores
likeshop外卖点餐系统【100%开源无加密】
Hcip 13th day notes
Use of recursion: 1. Convert the tiled array to a tree 2. Convert the tree to a tiled array
Gbase 8C transaction ID and snapshot
Unity 通用红点系统
Leetcode: 515. Find the maximum value in each tree row
GBase 8c 配置设置函数
Summary: Prometheus storage
HCIP第十三天笔记
A happy old age
Understand shader
