MySQL 多实例启动和停止脚本
Jun 07, 2016 pm 05:12 PMmysql 多实例启动脚本: #!/bin/bash if [ $1 == ] (输入要停止的mysq端口号)then echo Please input mysqld GNR number 1
mysql 多实例启动脚本:
#!/bin/bash
if [ "$1" == "" ] (输入要停止的mysq端口号)
then
echo "Please input mysqld GNR number 110-112"(这是开启的端口号范围)
elif ([ "$1" != "110" ] && [ "$1" != "111" ] && [ "$1" != "112" ])(匹配要关闭的端口号,,如果匹配成功就关闭掉响应的数据库实例)
then
echo "Please input mysqld port number 110-112"
else
mysqld_multi --defaults-extra-file=/etc/my_multi.cnf start $1
fi
~
mysql 多实例停止脚本:
#!/bin/bash
if [ "$1" == "" ]
then
echo "Please input mysqld GNR number 110-112"
elif ([ "$1" != "110" ] && [ "$1" != "111" ] && [ "$1" != "112" ])
then
echo "Please input mysqld port number 110-112"
else
mysqld_multi --defaults-extra-file=/etc/my_multi.cnf stop $1
fi

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Use ddrescue to recover data on Linux

Open source! Beyond ZoeDepth! DepthFM: Fast and accurate monocular depth estimation!

How to use Excel filter function with multiple conditions

The vitality of super intelligence awakens! But with the arrival of self-updating AI, mothers no longer have to worry about data bottlenecks

Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training

Slow Cellular Data Internet Speeds on iPhone: Fixes

The U.S. Air Force showcases its first AI fighter jet with high profile! The minister personally conducted the test drive without interfering during the whole process, and 100,000 lines of code were tested for 21 times.

The first robot to autonomously complete human tasks appears, with five fingers that are flexible and fast, and large models support virtual space training
