我在一台机器上部署两个mysql实例,但是第二个实例启动不了,不知道为什么,请指教
[root@sha-wks-ab436 mysql2]# bin/mysqld_safe --defaults-file=/etc/my2.cnf &
[1] 21758
[root@sha-wks-ab436 mysql2]# 100618 10:00:41 mysqld_safe Logging to '/usr/local/mysql2/data/sha-wks-ab436.ubisoft.org.err'.
100618 10:00:41 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql2/data
100618 10:00:41 mysqld_safe mysqld from pid file /usr/local/mysql2/data/sha-wks-ab436.ubisoft.org.pid ended当我初始化db的时候会有一个这样的警告,是否和这个有关系。谢谢。
[root@sha-wks-ab436 mysql2]# scripts/mysql_install_db --user=mysql
Installing MySQL system tables...
100618  9:59:35 [Warning] The syntax '--log' is deprecated and will be removed in a future release. Please use '--general_log'/'--general_log_file' instead.
100618  9:59:35 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead.
OK
Filling help tables...
100618  9:59:36 [Warning] The syntax '--log' is deprecated and will be removed in a future release. Please use '--general_log'/'--general_log_file' instead.
100618  9:59:36 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead.
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h 10.192.89.121 password 'new-password'Alternatively you can run:
/usr/local/mysql/bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl
cd /usr/local/mysql/mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/local/mysql/scripts/mysqlbug script!