MySQL 5.6 Multi-instance Mysqld_multi stop cannot shut down the database

Source: Internet
Author: User


    1. Description

According to the needs of the business, from the perspective of reasonable use of hardware resources, production database to prepare some of the business running many instances, in the process of testing encountered a small problem, record.


2.vi/etc/my.cnf

[Mysqld_multi]mysqld=/usr/bin/mysqld_safemysqladmin=/usr/bin/mysqladminuser = Rootpassword = Rootlog=/tmp/multi.lo G..............................


3. Error message

# Mysqld_multi Stop 3307--3307 stands for GNR Group numbers


The user, password, and permission check are OK when the database is executed.

Warning:using a password on the command line interface can is insecure./usr/bin/mysqladmin:connect to server at ' Localho St ' Failederror: ' Access denied for user ' root ' @ ' localhost ' (using password:yes) ' Mysqld_multi log file version 2.16; run:wed Dec 14 15:31:32 2016


4. Handling Methods

# which mysqld_multi/usr/bin/mysqld_multi# Vi/usr/bin/mysqld_multi
My $com = Join ', ' my_print_defaults ', @defaults_options, $group; To be replaced by: my $com = Join ', ' my_print_defaults-s ', @defaults_options, $group;


5. Successful re-execution

# Mysqld_multi Stop 3307# mysqld_multi reportreporting MySQL serversmysql server from group:mysqld3307 are not running


Most of the company's host server resources are relatively idle, especially the database server, how to ensure that the business normal situation for the company

Saving money is a question that needs to be considered, and every department needs to think about it. Money is the life of the rich, the life of ordinary people without money,

In other words, business pressure comes up, it is likely that the company's ability to make money also comes up, the time to do the adjustment is not too late, gradual, structural design is so, continuous improvement, evolution, the existence is reasonable.

MySQL 5.6 Multi-instance Mysqld_multi stop cannot shut down the database

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.