日期:2014-05-16 浏览次数:20847 次
测试选项 | 值 |
MySQL软件安装目录 | /usr/local/mysql |
实例一数据目录 | /tmp/data1 |
实例一TCP端口 | 3307 |
实例二数据目录 | /tmp/data2 |
实例二TCP端口 | 3308 |
cd /usr/local/mysql scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/tmp/data1
cd /usr/local/mysql bin/mysqld_safe --user=mysql --basedir=/usr/local/mysql --datadir=/tmp/data1 --port=3307 &
cd /usr/local/mysql scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/tmp/data2
cd /usr/local/mysql bin/mysqld_safe --user=mysql --basedir=/usr/local/mysql --datadir=/tmp/data2 --port=3308 &
cd /usr/mysql/local bin/mysql --protocol=TCP --port=3307 -u root status exit
cd /usr/mysql/local bin/mysql --protocol=TCP --port=3308 -u root status exit