Brief analysis of centos 7 mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar

Brief analysis of centos 7 mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar

Baidu Cloud Disk:

Link: https://pan.baidu.com/s/1hv5rUWYK080hCuONqpSVCg Extraction code: qhgp

Installation Instructions:

https://www.jb51.net/article/138787.htm

Operation log

mkdir mysql
 40 ll
 41 cd my
 42 cd mysql/
 43 ll
 45 tar -xvf mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar
 46 ll
 47 rpm -ivh mysql-community-common-8.0.19-1.el7.x86_64.rpm --nodeps --force
 48 rpm -ivh mysql-community-libs-8.0.19-1.el7.x86_64.rpm --nodeps --force 
 49 rpm -ivh mysql-community-client-8.0.19-1.el7.x86_64.rpm --nodeps --force
 50 rpm -ivh mysql-community-server-8.0.19-1.el7.x86_64.rpm --nodeps --force
 51 rpm -qa | grep mysql 
 52 mysqld --initialize;
 53 chown mysql:mysql /var/lib/mysql -R;
 54 systemctl start mysqld.service;
 55 systemctl enable mysqld;
 56 cat /var/log/mysqld.log | grep password
 57 mysql -uroot -p
 58 systemctl stop firewalld.service;
 59 systemctl disable firewalld.service;
 60 systemctl mask firewalld.service;
 61 ifconfig

Use cat /var/log/mysqld.log | grep password command to view the database password.

Press Enter key to enter the database login interface through mysql -uroot -p

Change the password by ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';

Exit MySQL using the exit; command, and then log in again using the new password

.Authorize remote access through the following command

create user 'root'@'%' identified with mysql_native_password by 'root';
grant all privileges on *.* to 'root'@'%' with grant option;
flush privileges;

ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER ;

Command to modify the encryption rules. The encryption rules of MySql 8.0 and 5.0 are different, and the current visualization tool only supports the old encryption method.

Refresh the modified permissions by using flush privileges; command

Use the following command to turn off the firewall:

systemctl stop firewalld.service;
systemctl disable firewalld.service;
systemctl mask firewalld.service;

Summarize

The above is the centos 7 mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • CentOS7 uses rpm to install MySQL 5.7 tutorial diagram
  • Detailed tutorial on installing mysql 8.0.13 (rpm) on Centos7
  • Installation tutorial of mysql8.0rpm on centos7
  • Solution to the initialization error when installing mysql5.7 from rpm package in centos6.5
  • Install MySQL 5.7.18 using rpm package under CentOS 7
  • Alibaba Cloud Centos7.3 installation mysql5.7.18 rpm installation tutorial
  • CentOS7 uses rpm package to install mysql 5.7.18
  • Tutorial on installing MySQL 5.7.9 using RPM package under CentOS 7
  • Install mysql5.7.13 using RPM in CentOS 7
  • CentOS7 detailed installation of MySQL using rpm

<<:  Docker implements cross-host container communication based on macvlan

>>:  Vue3+script setup+ts+Vite+Volar project

Recommend

VMware vSAN Getting Started Summary

1. Background 1. Briefly introduce the shared sto...

Summary of various forms of applying CSS styles in web pages

1. Inline style, placed in <body></body&g...

Vue3+TypeScript encapsulates axios and implements request calls

No way, no way, it turns out that there are peopl...

Tutorial on installing VMWare15.5 under Linux

To install VMWare under Linux, you need to downlo...

How to install setup.py program in linux

First execute the command: [root@mini61 setuptool...

How to implement simple data monitoring with JS

Table of contents Overview first step Step 2 Why ...

How to use domestic image warehouse for Docker

1. Problem description Due to some reasons, the d...

Web project development JS function anti-shake and throttling sample code

Table of contents Stabilization Introduction Anti...

HTML table tag tutorial (44): table header tag

<br />In order to clearly distinguish the ta...

MYSQL's 10 classic optimization cases and scenarios

Table of contents 1. General steps for SQL optimi...

Example of integrating Kafka with Nginx

background nginx-kafka-module is a plug-in for ng...

JavaScript implements mouse control of free moving window

This article shares the specific code of JavaScri...

18 Amazing Connections Between Interaction Design and Psychology

Designers need to understand psychology reading n...

Detailed description of common events and methods of html text

Event Description onactivate: Fired when the objec...