根据小辉老师视频,暂列学习笔记
my.cnf
socket=/tmp/mysql3306.sock
pid-file=/tmp/mysql3306.pid
#skip-locking
key_buffer_size=16K
max_allowed_packet=1M
table_open_cache=4
sort_buffer_size=64K
read_buffer_size=256K
read_rnd_buffer_size=256K
net_buffer_length=2K
thread_stack=128K
basedir=/u01/mysql
datadir=/u01/mysql/data
server_id=1
[mysqld3307]
port=3307
socket=/tmp/mysql3307.sock
pid-file=/tmp/mysql3307.pid
#skip-locking
key_buffer_size=16K
max_allowed_packet=1M
table_open_cache=4
sort_buffer_size=64K
read_buffer_size=256K
read_rnd_buffer_size=256K
net_buffer_length=2K
thread_stack=128K
basedir=/u01/mysql
datadir=/u01/mysql/data2
server_id=1
[mysqld3308]
port=3308
socket=/tmp/mysql3308.sock
pid-file=/tmp/mysql3308.pid
#skip-locking
key_buffer_size=16K
max_allowed_packet=1M
table_open_cache=4
sort_buffer_size=64K
read_buffer_size=256K
read_rnd_buffer_size=256K
net_buffer_length=2K
thread_stack=128K
basedir=/u01/mysql
datadir=/u01/mysql/data3
server_id=1
[client]
#password=your_password
port=3306
socket=/var/lib/mysql/mysql.sock