Home > Database > Mysql Tutorial > body text

Upgrading MySQL using the MySQL APT repository

WBOY
Release: 2023-08-27 19:17:02
forward
1105 people have browsed it

使用 MySQL APT 存储库升级 MySQL

The MySQL APT repository can be used to perform in-place upgrades of MySQL installations.

This can be done using the following steps -

Upgrading MySQL

Make sure that the MySQL APT repository is present in the repository list of the user's system. Make sure the latest package information is present on the MySQL APT repository by running the following command -

shell> sudo apt-get update
Copy after login

By default, the MySQL APT repository updates MySQL to the version selected when the user added the MySQL APT repository to the system series.

In general, it is recommended to upgrade from one release series to another rather than skipping a series.

Use the following command to upgrade MySQL -

shell> sudo apt-get install mysql-server
Copy after login

When you execute the above command, the MySQL server, client and database public files will be upgraded, provided that a new version is available.

Upgrading MySQL packages

To upgrade other MySQL packages, use the same "apt-get install" command and provide the name of the package that needs to be upgraded -

shell> sudo apt-get install package-name
Copy after login

To view The name of the package that has been installed from the MySQL APT repository, you can use the following command -

shell> dpkg −l | grep mysql | grep ii
Copy after login

The MySQL server is restarted after the APT update.

The above is the detailed content of Upgrading MySQL using the MySQL APT repository. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template