数据库
首页 > 数据库> > mysql多实例,mysqld_multi

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

标签:multi,--,mysqld,mysql,3307,data
来源: https://www.cnblogs.com/learnnote/p/15237041.html