Linux serverNETWORK ADMINISTRATIONS

How to install MySQL 5.7.x on CentOS 7 (2021.8)

# download MySQL Yum Repository
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
# install Yum Repository
yum -y install mysql57-community-release-el7-10.noarch.rpm
# install MySQL
yum -y install mysql-community-server

# install finished

# start MySQL service
systemctl start mysqld.service

# view status
systemctl status mysqld.service

# view default password
grep “password” /var/log/mysqld.log

# mysql login
mysql -u root -p

# change password
ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘NEW_PASSWORD’;

==============================

Donations
XMR: 47RZyDevRzyG4Z79MMhyLv7Wk11zgiuWb9g5HrK3Sv4nae2hPzY3pYZhAj3hS8aNt82FncShAQZJQDPtVdapnbSk65MvFAL

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *