Mysqld_multi can't close MySQL processing tips

Source: Internet
Author: User
Tags perl script

In MySQL multi-instance enablement, many environments choose to use Mysqld_multi to manage multiple instances, but unfortunately, after MySQL 5.6,
Mysqld_mutli can't turn MySQL off.

The approach to this problem is first confirmed:

Mysqladmin-h127.0.0.1-p3307-umdev-p shutdown
Or
Mysqladmin-s/tmp/mysql3307.sock-umdev-p shutdown

Work is fine.

To create a user:

Create user ' mdev ' @ ' localhost ' identified by ' mdev4admin ';
Grant Shutdown on *. * to ' mdev ' @ ' localhost ';

Luckily, Mysqld_multi is a Perl script that is easy to find for reasons, and is interested in referencing the documentation that follows.
Treatment methods:

    1. Modify the Mysqld_mutli
      my $com= join ‘ ‘, ‘my_print_defaults ‘, @defaults_options, $group;
      To be replaced by:
      my $com= join ‘ ‘, ‘my_print_defaults -s‘, @defaults_options, $group;
    2. Call Mysqld_multi incoming password
      mysqld_multi stop 3307 --password=mdev4admin
  Source: Http://wubx.net/mysqld_multi-stop-mysqld-not-working/?utm_source=tuicool&utm_medium=referral

Mysqld_multi can't close MySQL processing tips

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.