mysql1:使用默认配置root@localhost usr]# groupadd mysql
mysql2使用3307端口,配置文件为:/etc/my5.cnf root@localhost usr]# groupadd mysql vi /etc/rc.d/init.d/mysql5 修改下面的内容: conf=/etc/my5.cnf $bindir/mysqld_safe --defaults-file=/etc/my5.cnf --datadir=$datadir --pid-file=$server_pid_file $other_args >/dev/null 2>&1 &
vi /etc/my5.cnf修改相关的端口 port = 3307 |