MySQL多实例启停脚本

#!/bin/sh

mysql --defaults-file=/usr/local/mysqlinstance/etc/my.cnf -S /usr/local/mysqlinstance/data/blms/mysql.sock -uroot -p


#!/bin/sh

netstat -tunlp | grep 3309


#!/bin/sh

/usr/local/mysqlinstance/bin/mysqld_multi --defaults-extra-file=/usr/local/mysqlinstance/etc/my.cnf --user=mysql start 3309

tail -f /usr/local/mysqlinstance/data/blms/logs/error.log


#!/bin/sh

/usr/local/mysqlinstance/bin/mysqld_multi --defaults-extra-file=/usr/local/mysqlinstance/etc/my.cnf --user=root --password=aibei1010 stop 3309


你可能感兴趣的:(数据库,mysql)