Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install mysql-5.5 with rpm in Centos7

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "Centos7 how to install mysql-5.5 with rpm". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "Centos7 how to install mysql-5.5 with rpm".

1. Download rpm file

Https://www.mysql.com/downloads/

Enter MySQL Community Server

Select the corresponding version to download, download two rpm packages of MySQL-server and MySQL-client

Upload the downloaded rpm package to the Linux server

Second, install mysql

Clean up the environment

Centos7 will come with a mariadb to see if it is installed.

Rpm-qa | grep-I mysql

Rpm-qa | grep-I mariadb

Uninstall installed mysql and mariadb packages

Install dependency packages

Yum-y install net-tools perl autoconf

Install mysql

Rpm-ivh MySQL-server-5.5.62-1.el7.x86_64.rpm

Rpm-ivh MySQL-client-5.5.62-1.el7.x86_64.rpm

Start the service

Service mysql start

Systemctl enable mysql

Log in to mysql and set the root password

Mysql-uroot

Set password=password ('root')

Enable remote login of mysql

Grant all privileges on *. * to 'root'@'%' identified by' root'; # permission is enlarged to any machine and you can log in remotely

Flush privileges

At this point, the mysql-5.5 is installed.

Thank you for reading, the above is the content of "Centos7 how to install mysql-5.5 with rpm". After the study of this article, I believe you have a deeper understanding of how Centos7 uses rpm to install mysql-5.5, 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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report