Install mysql enterprise centos 7
The recommended way to install MySQL on RPM-based Linux distributions is by using the RPM packages provided by Oracle. There are two sources for obtaining them, for the Community Edition of MySQL:
Note RPM distributions of MySQL are also provided by other vendors. Be aware that they may differ from those built by Oracle in features, capabilities, and conventions (including communication setup), and that the installation instructions in this manual do not necessarily apply to them. The vendor's instructions should be consulted instead. MySQL RPM PackagesTable 7.2 RPM Packages for MySQL Community Edition
Table 7.3 RPM Packages for the MySQL Enterprise Edition
The full names for the RPMs have the following syntax:
The Table 7.4 MySQL Linux RPM Package Distribution Identifiers
To see all files in an RPM package (for example,
The discussion in the rest of this section applies only to an installation process using the RPM packages directly downloaded from Oracle, instead of through a MySQL repository. Dependency relationships exist among some of the packages. If you plan to install many of the packages, you may wish to download the RPM bundle tar file instead, which contains all the RPM packages listed above, so that you need not download them separately. In most cases, you need to install the
Replace yum with zypper for SLES, and with dnf for Fedora. While it is much preferable to use a high-level package management tool like yum to install the packages, users who prefer direct rpm commands can replace the yum install command with the rpm -Uvh command; however, using rpm -Uvh instead makes the installation process more prone to failure, due to potential dependency issues the installation process might run into. To install only the client programs, you can skip
Replace yum with zypper for SLES, and with dnf for Fedora. A standard installation of MySQL using the RPM packages result in files and resources created under the system directories, shown in the following table. Table 7.5 MySQL Installation Layout for Linux RPM Packages from the MySQL Developer Zone
The installation also creates a user named Note Installation of previous versions of MySQL using older packages might have created a configuration file named MySQL is NOT automatically started at the end of the installation process. For Red Hat Enterprise Linux, Oracle Linux, CentOS, and Fedora systems, use the following command to start MySQL:
For SLES systems, the command is the same, but the service name is different:
If the operating system is systemd enabled, standard systemctl (or alternatively, service with the arguments reversed) commands such as stop,
start, status, and restart should be used to manage the MySQL server service. The During an upgrade installation using RPM and DEB packages, if the MySQL server is running when the upgrade occurs then the MySQL server is stopped, the upgrade occurs, and the MySQL server is restarted. One exception: if the edition also changes during an upgrade (such as community to commercial, or vice-versa), then MySQL server is not restarted. At the initial start up of the server, the following happens, given that the data directory of the server is empty:
Note
If something goes wrong during installation, you might find debug information in the error log file For some Linux distributions, it might be necessary to increase the limit on number of file descriptors available to mysqld. See File Not Found and Similar Errors Installing Client Libraries from Multiple MySQL Versions. It is possible to install multiple client library versions, such as for the case that you want to maintain compatibility with older
applications linked against previous libraries. To install an older client library, use the
Debug Package. A special variant of MySQL Server compiled with the debug package has been included in the server RPM packages.
It performs debugging and memory allocation checks and produces a trace file when the server is running. To use that debug version, start MySQL with Note The default plugin directory for debug builds changed from Rebuilding RPMs from source SRPMs. Source code SRPM packages for MySQL are available for download. They can be used as-is to rebuild the MySQL RPMs with the standard rpmbuild tool chain. |