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

A detailed tutorial on installing mysql8.0 with Linux yum command

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

First, clean up before installation

rpm -pa |grep mysql or rpm -qa| grep -i mysqlyum remove mysql-xxx-xxxfind / -name mysqlrm -rf /xxx/xxx/xxx

Second, download the corresponding installation package

Download link: dev.mysql.com/downloads/repo/yum/

Third, install MySQL

Execute rpm file

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

install MySQL

yum install mysql-community-server

Start mysql service

serivce mysql start

Get initialization password

cat /var/log/mysqld.log | grep password

Access the database, change the password.

mysql -uroot -pALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4! ';

Enable remote access

use mysql;update user set host='%' where user='root';

Open 3306 port number

vim /etc/sysconfig/iptables-A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPTservice iptables restart

summary

The above is a small series to introduce you to the Linux yum command installation mysql8.0 tutorial detailed explanation, I hope to help you, if you have any questions please give me a message, small series will reply to you in time. Thank you very much for your support!

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

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report