相关文章推荐
帅呆的篮球  ·  子查詢 (SQL Server) - ...·  2 月前    · 
至今单身的小蝌蚪  ·  UPDATE - Azure ...·  2 月前    · 
玩命的棒棒糖  ·  “先进集体”“先进个人”……这项荣誉永年区2 ...·  1 年前    · 
直爽的跑步机  ·  臺灣文獻全文資料庫 -新聞報刊全文瀏覽·  1 年前    · 
高大的回锅肉  ·  河南省现代综合交通运输体系和枢纽经济融合发展 ...·  1 年前    · 
千杯不醉的甘蔗  ·  珍妮的选择电脑版下载_珍妮的选择电脑版怎么玩 ...·  2 年前    · 
安静的香烟  ·  最新通知!浙江中考发生重大变化·  2 年前    · 
Code  ›  MySQL :: MySQL 8.0 Reference Manual :: 2.10.7 Upgrading MySQL with the MySQL Yum Repository
mysql linux系统 yum update
https://dev.mysql.com/doc/refman/8.0/en/updating-yum-repo.html
大鼻子的荒野
2 年前
Setting Alternative Server Paths with MySQL Installer
Installation Workflows with MySQL Installer
MySQL Installer Product Catalog and Dashboard
MySQL Installer Console Reference
Troubleshooting a Microsoft Windows MySQL Server Installation
Windows Postinstallation Procedures
Windows Platform Restrictions
General Notes on Installing MySQL on macOS
Installing MySQL on macOS Using Native Packages
Installing and Using the MySQL Launch Daemon
Installing and Using the MySQL Preference Pane
Installing MySQL on Linux Using the MySQL Yum Repository
Installing MySQL on Linux Using the MySQL APT Repository
Installing MySQL on Linux Using the MySQL SLES Repository
Installing MySQL on Linux Using RPM Packages from Oracle
Installing MySQL on Linux Using Debian Packages from Oracle
Deploying MySQL on Linux with Docker Containers
Basic Steps for MySQL Server Deployment with Docker
More Topics on Deploying MySQL Server with Docker
Deploying MySQL on Windows and Other Non-Linux Platforms with Docker
Installing MySQL on Linux from the Native Software Repositories
Installing MySQL on Linux with Juju
Managing MySQL Server with systemd
MySQL Layout for Source Installation
Installing MySQL Using a Standard Source Distribution
Installing MySQL Using a Development Source Tree
Configuring SSL Library Support
MySQL Source-Configuration Options
Dealing with Problems Compiling MySQL
MySQL Configuration and Third-Party Tools
Generating MySQL Doxygen Documentation Content
Preparing Your Installation for Upgrade
Upgrading MySQL Binary or Package-based Installations on Unix/Linux
Upgrading MySQL with the MySQL Yum Repository
Upgrading MySQL with the MySQL APT Repository
Upgrading MySQL with the MySQL SLES Repository
Upgrading MySQL on Windows
Upgrading a Docker Installation of MySQL
Upgrade Troubleshooting
Rebuilding or Repairing Tables or Indexes
Copying MySQL Databases to Another Machine
For supported Yum-based platforms (see Section 2.5.1, “Installing MySQL on Linux Using the MySQL Yum Repository” , for a list), you can perform an in-place upgrade for MySQL (that is, replacing the old version and then running the new version using the old data files) with the MySQL Yum repository. Before performing any update to MySQL, follow carefully the instructions in Section 2.10, “Upgrading MySQL” . Among other instructions discussed there, it is especially important to back up your database before the update. The following instructions assume you have installed MySQL with the MySQL Yum repository or with an RPM package directly downloaded from MySQL Developer Zone's MySQL Download page ; if that is not the case, following the instructions in Replacing a Third-Party Distribution of MySQL Using the MySQL Yum Repository . By default, the MySQL Yum repository updates MySQL to the latest version in the release series you have chosen during installation (see Selecting a Release Series for details), which means, for example, a 5.7.x installation is not updated to a 8.0.x release automatically. To update to another release series, you must first disable the subrepository for the series that has been selected (by default, or by yourself) and enable the subrepository for your target series. To do that, see the general instructions given in Selecting a Release Series . For upgrading from MySQL 5.7 to 8.0, perform the reverse of the steps illustrated in Selecting a Release Series , disabling the subrepository for the MySQL 5.7 series and enabling that for the MySQL 8.0 series. As a general rule, to upgrade from one release series to another, go to the next series rather than skipping a series. For example, if you are currently running MySQL 5.6 and wish to upgrade to 8.0, upgrade to MySQL 5.7 first before upgrading to 8.0. Upgrade MySQL and its components by the following command, for platforms that are not dnf-enabled:

sudo yum update mysql-server

For platforms that are dnf-enabled:

sudo dnf upgrade mysql-server

Alternatively, you can update MySQL by telling Yum to update everything on your system, which might take considerably more time. For platforms that are not dnf-enabled:

sudo yum update

For platforms that are dnf-enabled:

sudo dnf upgrade
  • Restarting MySQL

    The MySQL server always restarts after an update by Yum. Prior to MySQL 8.0.16, run mysql_upgrade after the server restarts to check and possibly resolve any incompatibilities between the old data and the upgraded software. mysql_upgrade also performs other functions; for details, see Section 4.4.5, “mysql_upgrade — Check and Upgrade MySQL Tables” . As of MySQL 8.0.16, this step is not required, as the server performs all tasks previously handled by mysql_upgrade . You can also update only a specific component. Use the following command to list all the installed packages for the MySQL components (for dnf-enabled systems, replace yum in the command with dnf ):

    sudo yum list installed | grep "^mysql"

    After identifying the package name of the component of your choice, update the package with the following command, replacing package-name with the name of the package. For platforms that are not dnf-enabled:

    sudo yum update package-name

    For dnf-enabled platforms:

    sudo dnf upgrade package-name

    Upgrading the Shared Client Libraries

    After updating MySQL using the Yum repository, applications compiled with older versions of the shared client libraries should continue to work. If you recompile applications and dynamically link them with the updated libraries: As typical with new versions of shared libraries where there are differences or additions in symbol versioning between the newer and older libraries (for example, between the newer, standard 8.0 shared client libraries and some older—prior or variant—versions of the shared libraries shipped natively by the Linux distributions' software repositories, or from some other sources), any applications compiled using the updated, newer shared libraries require those updated libraries on systems where the applications are deployed. As expected, if those libraries are not in place, the applications requiring the shared libraries fail. For this reason, be sure to deploy the packages for the shared libraries from MySQL on those systems. To do this, add the MySQL Yum repository to the systems (see Adding the MySQL Yum Repository ) and install the latest shared libraries using the instructions given in Installing Additional MySQL Products and Components with Yum .
  •  
    推荐文章
    帅呆的篮球  ·  子查詢 (SQL Server) - SQL Server | Microsoft Learn
    2 月前
    至今单身的小蝌蚪  ·  UPDATE - Azure Databricks(Azure 數據磚) - Databricks SQL | Microsoft Learn
    2 月前
    玩命的棒棒糖  ·  “先进集体”“先进个人”……这项荣誉永年区2个集体获奖43人上榜-永年区人民政府
    1 年前
    直爽的跑步机  ·  臺灣文獻全文資料庫 -新聞報刊全文瀏覽
    1 年前
    高大的回锅肉  ·  河南省现代综合交通运输体系和枢纽经济融合发展-2022年在线访谈-中华人民共和国交通运输部
    1 年前
    千杯不醉的甘蔗  ·  珍妮的选择电脑版下载_珍妮的选择电脑版怎么玩_珍妮的选择电脑版辅助安装包_九游
    2 年前
    安静的香烟  ·  最新通知!浙江中考发生重大变化
    2 年前
    今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
    删除内容请联系邮箱 2879853325@qq.com
    Code - 代码工具平台
    © 2024 ~ 沪ICP备11025650号