本文共 2493 字,大约阅读时间需要 8 分钟。
The MySQL Yum repository for Oracle Linux, Red Hat Enterprise Linux, CentOS, and Fedora provides RPM packages for installing the MySQL server, client, MySQL Workbench, MySQL Utilities, MySQL Router, MySQL Shell, Connector/ODBC, Connector/Python and so on (not all packages are available for all the distributions; see Installing Additional MySQL Products and Components with Yum for details).
As a popular, open-source software, MySQL, in its original or re-packaged form, is widely installed on many systems from various sources, including different software download sites, software repositories, and so on. The following instructions assume that MySQL is not already installed on your system using a third-party-distributed RPM package; if that is not the case, follow the instructions given in Section 2.11.1.6, “Upgrading MySQL with the MySQL Yum Repository” or Replacing a Third-Party Distribution of MySQL Using the MySQL Yum Repository.
Follow the steps below to install the latest GA version of MySQL with the MySQL Yum repository:
First, add the MySQL Yum repository to your system’s repository list. This is a one-time operation, which can be performed by installing an RPM provided by MySQL. Follow these steps:
a). Go to the Download MySQL Yum Repository page () in the MySQL Developer Zone. b).Select and download the release package for your platform. c).Install the downloaded release package with the following command, replacing platform-and-version-specific-package-name with the name of the downloaded RPM package:shell> sudo yum localinstall platform-and-version-specific-package-name.rpm
Install MySQL by the following command (for dnf-enabled systems, replace yum in the command with dnf):
shell> sudo yum install mysql-community-server
This installs the package for MySQL server (mysql-community-server) and also packages for the components required to run the server, including packages for the client (mysql-community-client), the common error messages and character sets for client and server (mysql-community-common), and the shared client libraries (mysql-community-libs).
Start the MySQL server with the following command:
shell> sudo service mysqld startStarting mysqld:[ OK ]
You can check the status of the MySQL server with the following command:
shell> sudo service mysqld statusmysqld (pid 3066) is running.
FOR MORE:
转载地址:http://xthbb.baihongyu.com/