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

Analysis of Context application scenarios in React

Context definition and purpose Context provides a...

How to deploy HTTPS for free on Tencent Cloud

Recently, when I was writing a WeChat applet, the...

MySQL master-slave synchronization principle and application

Table of contents 1. Master-slave synchronization...

Solve the MySQL login 1045 problem under centos

Since the entire application needs to be deployed...

Detailed example of concatenating multiple fields in mysql

The MySQL query result row field splicing can be ...

Configure nginx to redirect to the system maintenance page

Last weekend, a brother project was preparing to ...

Summary of Vue component basics

Component Basics 1 Component Reuse Components are...

How to customize an EventEmitter in node.js

Table of contents Preface 1. What is 2. How to us...

Solution to failure in connecting to mysql in docker

Scenario: After installing the latest version of ...

Some useful meta setting methods (must read)

<meta name="viewport" content="...

CSS method of clearing float and BFC

BFC BFC: Block Formatting Context BFC layout rule...

Detailed explanation of JavaScript closure issues

Closures are one of the traditional features of p...

Basic ideas and codes for implementing video players in browsers

Table of contents Preface Summary of audio and vi...

Introduction to Apache deployment of https in cryptography

Table of contents Purpose Experimental environmen...