In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
How do I install mysql 5.6using a yum source on a centos7.4 system? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
System environment: centos7.4
First, check to see if the database is installed:
Yum list installed | grep mysqld/mariadb
Second, install the yum source RPM resource kit for centos7 system with mysql5.6 installation package:
Rpm-Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmyum clean allyum repolist
Third, install msyql5.6:
Yum-y install mysql-community-server
Fourth, start the service:
Systemctl start mysqldsystemctl enable mysqld
Fifth, reset password: it depends on the specific situation (can be omitted, login without password)
# mysql_secure_installationSet root password? [Yzone] y [set root user password] Remove anonymous users? [YBO] y [delete anonymous users] Disallow root login remotely? [root] n [prohibit remote login of root] Remove test database and access to it? [Asia] y [delete test database] Reload privilege tables now? [YBO] y [refresh permissions]
6. Check the mysql version:
Mysql-Vmysql Ver 14.14 Distrib 5.6.39, for Linux (x86 / 64) using EditLine wrapper
Seven, verify: (no password)
Mysql-uroot-p password
8. Set password and remote permissions
Database password setting: # set password for 'root'@'localhost'=password (' userpasswd')
IX. Configure the firewall
Firewall-cmd-zone=public-add-port=3306/tcp-permanent
After reading the above, have you learned how to install mysql 5.6 using the yum source in the centos7.4 system? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.