Tutorial analysis of quick installation of mysql5.7 based on centos7

Tutorial analysis of quick installation of mysql5.7 based on centos7

one.

wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm

two.

yum -y localinstall mysql57-community-release-el7-11.noarch.rpm

three.

yum -y install mysql-community-server

Four.

systemctl start mysqld<br>ps -ef | grep mysql

5.MySQL default password

cat /var/log/mysqld.log

Login

mysql -uroot -pykO:DNGXx5ee

7. Change the default password

ALTER USER 'root'@'localhost' IDENTIFIED BY 'Qwe340721@';

Set up remote login

RANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Qwe340721@' WITH GRANT OPTION;

quit

exit;

8. Open port 3306 on the firewall

firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload

9. Configure MySQL default encoding to utf-8

vim /etc/my.cnf<br><br>

character_set_server=utf8

init_connect='SET NAMES utf8'

10. Restart the service

systemctl restart mysqld

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed installation process of MySQL5.6.40 under CentOS7 64
  • Detailed tutorial on installing MySQL 8.0.20 database on CentOS 7
  • Detailed tutorial on installing mysql 8.0.20 on CentOS7.8
  • Detailed tutorial on how to compile and install mysql8.0.29 in CentOS8 deployment LNMP environment
  • CentOS7.5 installation of MySQL8.0.19 tutorial detailed instructions
  • Install CentOS7 in VMware (set static IP address) and install mySql database through docker container (super detailed tutorial)
  • Centos7 mysql database installation and configuration tutorial

<<:  How to implement logic reuse with Vue3 composition API

>>:  mysql8.0 forgotten password modification and net command service name invalid problem

Recommend

MySQL 8.0.21 free installation version configuration method graphic tutorial

Six steps to install MySQL (only the installation...

Summary of the differences between get and post requests in Vue

The operating environment of this tutorial: Windo...

How to solve the mysql error 1033 Incorrect information in file: 'xxx.frm'

Problem Description 1. Database of the collection...

Detailed steps for installing ros2 in docker

Table of contents Main topic 1. Install Docker on...

Use of TypeScript Generics

Table of contents 1. Easy to use 2. Using generic...

Install and configure ssh in CentOS7

1. Install openssh-server yum install -y openssl ...

Ten Experiences in Presenting Chinese Web Content

<br /> Focusing on the three aspects of text...

A simple way to build a Docker environment

First, let’s understand what Docker is? Docker is...

Detailed explanation of MySQL Workbench usage tutorial

Table of contents (I) Using Workbench to operate ...

Understanding of haslaylout and bfc parsing

1. haslayout and bfc are IE-specific and standard ...