重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2906|回复: 2
打印 上一主题 下一主题

[升级] mysqld_safe and mysqld_multi 在 5.7以后的版本不见了

[复制链接]
跳转到指定楼层
楼主
发表于 2018-7-9 17:30:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
严格的说,是在rhel7系统上,如果使用rpm包安装,默认是没有这两个文件了。


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2018-7-9 17:31:25 | 只看该作者
使用 二进制安装,还有。

回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2018-7-9 17:32:17 | 只看该作者
具体可以参见: (Doc ID 2418462.1)

The mysqld_safe and mysqld_multi Scripts Are Missing for MySQL 5.7 and Later on Red Hat Enterprise (RHEL) 7, Oracle Linux 7, CentOS 7, SUSE Linux Enterprise Server 12, Fedora 20 and Later (Doc ID 2418462.1)
To Bottom



In this Document

Symptoms

Changes

Cause

Solution

References


Applies to:
MySQL Server - Version 5.7 and later
Generic Linux
Symptoms
After installing or upgrading to MySQL Server 5.7 or later on Red Hat Enterprise (RHEL) 7, Oracle Linux 7, CentOS 7, SUSE Linux Enterprise Server (SLES) 12, Fedora 20 and later using RPMs, the mysqld_safe and mysqld_multi scripts are missing.
Changes
MySQL 5.7 or later has been installed or an existing MySQL instance have been upgraded.
Cause
The mysqld_safe and mysqld_multi scripts are not included on purpose as they are not required for MySQL Server 5.7 and later on RPM based installation for Linux distributions where systemd is availble.
Red Hat Enterprise (RHEL) 7, Oracle Linux 7, CentOS 7, SUSE Linux Enterprise Server (SLES) 12, Fedora 20 and later using RPMs use systemd to manage MySQL. systemd does not use mysqld_safe and systemd has native support for managing multiple instances so there is no need for mysqld_multi either.
Note: Native systemd support for managing multiple instances on the same host was not implemented until MySQL Server 5.7.13.

From the MySQL Server 5.7.6 release notes:
"mysqld now supports a --daemonize option that causes it to run as a traditional, forking daemon. This permits the server to work with operating systems that use systemd for process control. Advantages include automatic restarts after failure, handling of the user and group used to run the daemon, resource control, and temporary-file cleanup.

The new WITH_SYSTEMD CMake option, when enabled, causes installation of systemd support files. In addition, scripts such as mysqld_safe and the System V initialization script are not installed. On platforms where systemd is not available, enabling WITH_SYSTEMD results in an error from CMake. When WITH_SYSTEMD is enabled, the new SYSTEMD_SERVICE_NAME and SYSTEMD_PID_DIR options may also be used to specify the MySQL service name and directory in which the server creates the PID file, respectively.

Support files for systemd are installed when you install MySQL using an RPM distribution for these Linux platforms:

  Red Hat Enterprise Linux 7; Oracle Linux 7; CentOS 7

  SUSE Linux Enterprise Server 12

  Fedora 20, 21

..."


From the MySQL Server 5.7.13 release notes:

"On platforms for which systemd support is installed, systemd has the capability of managing multiple MySQL instances. For details, see Managing MySQL Server with systemd. Consequently, mysqld_multi and mysqld_multi.server are not installed because they are unnecessary. (Bug #81093, Bug #23134620)"
Solution
Use systemd to manage the instance(s). See:
Managing MySQL Server with systemd
An example for Using systemd to Configure and Manage Multiple MySQL Instances: systemctl (Doc ID 2228210.1)
Configuring Multiple MySQL Instances Using systemd
References
NOTE:2228210.1 - An example for Using systemd to Configure and Manage Multiple MySQL Instances: systemctl
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-26 23:05 , Processed in 0.107026 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表