In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "centos7 uses rpm to install mysql5.7", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "centos7 use rpm to install mysql5.7" bar!
1. Download 4 rpm packages
Mysql-community-client-5.7.26-1.el7.x86_64.rpmmysql-community-common-5.7.26-1.el7.x86_64.rpmmysql-community-libs-5.7.26-1.el7.x86_64.rpmmysql-community-server-5.7.26-1.el7.x86_64.rpm
If you want to download with Xunlei, you must first find the corresponding rpm download path.
First, the browser opens the official website of mysql:
In the open interface, press the keyboard f12 to open the developer tools as follows:
Find the corresponding version on the official website:
Click to download directly:
The download path can be found in the developer tool:
The paths to 4 rpm packages of myql5.7 are given below. You can download them by directly opening Xunlei and filling in the download path. Other versions can be downloaded in the same way:
Https://cdn.mysql.com//downloads/mysql-5.7/mysql-community-server-5.7.26-1.el7.x86_64.rpm
Https://cdn.mysql.com//downloads/mysql-5.7/mysql-community-client-5.7.26-1.el7.x86_64.rpm
Https://cdn.mysql.com//downloads/mysql-5.7/mysql-community-common-5.7.26-1.el7.x86_64.rpm
Https://cdn.mysql.com//downloads/mysql-5.7/mysql-community-libs-5.7.26-1.el7.x86_64.rpm
two。 Upload rpm to linux
The xshell I use here does not have xftp installed.
Enter the put command in sftp, and select the downloaded rpm package to upload:
3. Installation
The uploaded rpm is as follows:
Install via rpm- ivhmysql-community-****-5.7.26-1.el7.x86_64.rpm--force-- nodeps. * means common, libs, client, and server
Installation order common-- > libs-- > client-- > server
If there is no-- force-- nodeps, an alarm will appear:
Warning: mysql-community-common-5.7.26-1.el7.x86_64.rpm: header v3 dsa/sha1 signature, key id 5072e1f5: nokey
4. Configuration
Start the mysql service:
[root@localhost ~] # service mysqld startredirecting to / bin/systemctl start mysqld.service [root@localhost ~] #
Locate the initial password:
[root@localhost ~] # cat / var/log/mysqld.log | grep password2019-06-02t08:39:38.448115z 1 [note] a temporary password is generated for root@localhost: dlzmcrv?s2q) 2019-06-02t08:40:41.870130z 2 [note] access denied for user 'root'@'localhost' (using password: no)
Log in to mysql:
[root@localhost] # mysql-u root-p
The password is the dlzmcrv?s2q found above)
Change the root password:
Mysql > alter user 'root'@'localhost' identified by' newpasswd'
Allow remote connections:
Mysql > grant all privileges on *. * to 'root'@'%' identified by' newpasswd' with grant option;mysql > flush peivleges
Turn off the firewall:
[root@localhost ~] # systemctl stop firewalld.service
Thank you for reading, the above is the content of "centos7 uses rpm to install mysql5.7". After the study of this article, I believe you have a deeper understanding of the problem of centos7 using rpm to install mysql5.7, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.