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 centos7 system MySQL5.7

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Next, let's learn how to install centos7 system MySQL5.7. I believe everyone will benefit a lot after reading it. The text is not much in essence. I hope centos7 system MySQL5.7 how to install this short content is what you want.

Environment introduction

CVM address:

192.168.99.122

MySQL version: MySQL 5.7

Mysql-community-server-5.7.19-1.el7.x86_64

Operation steps

# download and install yum source

Wget http://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm

# installation Source

Rpm-ivh mysql57-community-release-el7-11.noarch.rpm

# install MySQL (check the MySQL version)

Yum install mysql-server

# View MySQL version information after installation

Rpm-qa | grep mysql

# after MySQL5.7 installation is completed, a random password is automatically generated, which can be queried from the log

Method 1:

Tail / var/log/mysqld.log

Method 2:

Grep "password" / var/log/mysqld.log

# login test MySQL

Mysql-uroot-p

Use mysql

# modify the login password of MySQL administrator account root, and change MySQL_PASSWORD to the login password of MySQL administrator account that you need to set

Set password = password ('MySQL_PASSWORD')

Or:

ALTER USER 'root'@'localhost' IDENTIFIED BY' MySQL_PASSWORD'

After reading this article on how to install centos7 system MySQL5.7, many readers will want to know more about it. For more industry information, you can follow our industry information section.

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