mysql多实例,mysqld_multi

2021/9/7 19:09:04

本文主要是介绍mysql多实例,mysqld_multi,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

mysql单机多实例 [mysqld_multi]
mysqld=/usr/local/mysql/bin/mysqld_safe
mysqladmin=/usr/local/mysql/bin/mysqldadmin
log=/usr/local/mysql/mysqld_multi.log [mysqld1]
port=3307
datadir = /data_3307
socket= /tmp/mysql_3307.sock [mysqld2]
port=3308
datadir = /data_3308
socket= /tmp/mysql_3308.sock 初始化
mysqld --initialize-insecure --datadir=/data_3307 mysqld --initialize-insecure --datadir=/data_3308
shell终端命令
mysqld_multi start 1
mysqld_multi  report
mysqld_multi stop 1
mysql -S /tmp/mysql_3307.sock

这篇关于mysql多实例,mysqld_multi的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程