In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The default source of the centos7 system is mariadb, and there is no mysql. If you want to install mysql, you have to do it manually.
1, first of all, install the official source of mysql, the official address
Https://dev.mysql.com/downloads/repo/yum/
We choose the centos7 version to download
Or download directly using wget
Wget-o mysql_repo.rpm https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
2, and then use yum to install the source
Yum install mysql_repo.rpm
If you look at / etc/yum.repos.d, you will find that the mysql-community.repo file has been generated
The default is 8.0 source. If you want to install version 5.7, you need to modify this file.
Vi mysql-community.repo
Find [mysql80-community] and change the enabled=1 below to 0
Find [mysql57-community] and change the enabled=0 below to 1
Save, exit
3, and then you can install mysql5.7 on yum:
Yum install mysql-community-server
4. After the installation is complete, set Boot self and start the mysql service:
Systemctl enable mysqld & & systemctl start mysqld
5, view the random password and modify it
View the initial password:
Grep 'password' / var/log/mysqld.log
Log in to mysql with the initial password and change the password to a custom password mima123:
Set global validate_password_policy=0
Alter user root@localhost identified by 'mima123'
At this point, the mysql5.7 installation is complete.
If the official source is too slow during installation, you can solve it by modifying the source
After testing, the source speed of Beijing Institute of Technology is still relatively fast.
Http://mirrors.bit.edu.cn/mysql/yum/mysql57-community-el7/
Vi mysql-community.repo
Find [mysql57-community] and modify baseurl
Baseurl= http://mirrors.bit.edu.cn/mysql/yum/mysql57-community-el7
Save and exit, and then install, the speed should be fast.
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.