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 MySQL5.7

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you "how to install MySQL5.7", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install MySQL5.7" this article.

1. Uninstall the original version of mysql first

Rpm-qa | grep mysql

[root@monit usr] # rpm-qa | grep mysql

Mysql-5.1.71-1.el6.x86_64-- Uninstall

Mysql-libs-5.1.71-1.el6.x86_64-- Uninstall

Mysql57-community-release-el6-11.noarch

Qt-mysql-4.6.2-26.el6_4.x86_64

Mysql-server-5.1.71-1.el6.x86_64-- Uninstall

Rpm-e mysql-5.1.71-1.el6.x86_64-- nodeps

Rpm-e mysql-libs-5.1.71-1.el6.x86_64-- nodeps

Rpm-e mysql-server-5.1.71-1.el6.x86_64-- nodeps

2 extract and install mysql5.7

[root@monit usr] # tar-xvf mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar

Mysql-community-libs-5.7.19-1.el6.x86_64.rpm

Mysql-community-devel-5.7.19-1.el6.x86_64.rpm

Mysql-community-embedded-5.7.19-1.el6.x86_64.rpm

Mysql-community-common-5.7.19-1.el6.x86_64.rpm

Mysql-community-libs-compat-5.7.19-1.el6.x86_64.rpm

Mysql-community-server-5.7.19-1.el6.x86_64.rpm

Mysql-community-test-5.7.19-1.el6.x86_64.rpm

Mysql-community-embedded-devel-5.7.19-1.el6.x86_64.rpm

Mysql-community-client-5.7.19-1.el6.x86_64.rpm

Installation sequence:

[root@monit usr] # rpm-ivh mysql-community-common-5.7.19-1.el6.x86_64.rpm

[root@monit usr] # rpm-ivh mysql-community-libs*

[root@monit usr] # rpm-ivh mysql-community-devel-5.7.19-1.el6.x86_64.rpm

[root@monit usr] # rpm-ivh mysql-community-embedded*

[root@monit usr] # rpm-ivh mysql-community-client-5.7.19-1.el6.x86_64.rpm

[root@monit usr] # rpm-ivh mysql-community-server-5.7.19-1.el6.x86_64.rpm

3. Start the mysql service and change the root password

[root@monit usr] # service mysqld start

Initializing MySQL database: [OK]

Starting mysqld: [OK]

[root@monit usr] # grep 'temporary password' / var/log/mysqld.log

2017-08-07T12:10:35.283652Z 1 [Note] A temporary password is generated for root@localhost: pC,s-ywwh6s9

[root@monit usr] # mysql-uroot-p

Enter password:

Welcome to the MySQL monitor. Commands end with; or\ g.

Your MySQL connection id is 4

Server version: 5.7.19

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

Affiliates. Other names may be trademarks of their respective

Owners.

Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.

Mysql > ALTER USER 'root'@'localhost' IDENTIFIED BY' MyNewPass4passport'

Query OK, 0 rows affected (0.00 sec)

The above is all the contents of the article "how to install MySQL5.7". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report