In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Today, I will talk to you about how to use rpm to install mysql, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
View installation and uninstall
# View rpm-qa | grep mysql# uninstall yum-y remove mysql-libs-5.1.66-2.el6_3.x86_64
1.centos7 needs to uninstall mariadb first
View the command rpm-qa | grep mariadb
Installation package resource address
Mysql download address: https://dev.mysql.com/downloads/mysql/
# download resource name mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
Decompress resources
Tar-xvf mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
Get rpm package
Mysql-community-common-5.7.19-1.el6.x86_64.rpmmysql-community-client-5.7.19-1.el6.x86_64.rpmmysql-community-server-5.7.19-1.el6.x86_64.rpmmysql-community-libs-5.7.19-1.el6.x86_64.rpm
Installation
# installation order # common--> libs--> clients-- > server# installation command rpm-ivh mysql-community-common-5.7.19-1.el6.x86_64.rpm mysql-community-libs-5.7.19-1.el6.x86_64.rpm mysql-community-client-5.7.19-1.el6.x86_64.rpm mysql-community-server-5.7.19-1.el6.x86_64.rpm
You may need to rely on the package libaio
Install the command yum-y install libaio
Initialization
Mysqld-initialize-user=mysql
Start
Service mysqld start
Log in
# check the initial password cat / var/logs/mysql.log # or grep 'password' / var/logs/mysql.log-n-B 5 # and log in to mysql-uroot-pendant 123456 password # modify the initial password set PASSWORD=PASSWORD (' password')
Authorize remote links
# Authorization 192.168.0.1 can be remotely linked to * [all databases]. * [all tables] account: root password 123456grant all privileges on *. * to 'root'@'192.168.0.1' identified by' 123456database; # authorize all ipgrant all privileges on *. * to 'root'@'%' identified by' 123456license; # above * * indicates [database]. [table] # make the authorization take effect immediately flush privileges; after reading the above, do you have any further understanding of how to install mysql using rpm? If you want to know more knowledge or related content, please follow the industry information channel, thank you 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.
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.