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

Linux/Centos mysql5.1 upgrade to 5.6 (mysql upgrade installed by rpm)

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

Share

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

Before upgrading, back up the entire database as a precaution

Backing up the database and upgrading MySQL usually do not lose data, but just to be on the safe side, we need to do this step. Enter the command:

Mkdir / software set up a folder to store backup files

Mysqldump-u root-p-- all-databases-- default-character-set=utf8 > / software/databases.sql

Stop the MySQL service and enter the command:

Service mysqld stop

Download and install the latest rpm file

Rpm-Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

To install MySQL, enter the command:

Yum install mysql-community-server

Start MySQL and enter the command:

Service mysqld start

When the startup is complete, enter the command to view the MySQL version number:

Mysql-V

Upgrade succeeded

If you are interested, please scan the QR code below for more details for free

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