I have a single instance of MySQL package installed on FreeBSD. I run 2
servers. The second server is run with this command:
shell> mysqld_safe --defaults-extra-file=/root/my2.cnf &
some /root/my2.cnf file entries:
port = 3307
socket = /tmp/mysql2.sock
Both servers co-exist peacefully except:
shell> mysql --socket=/tmp/mysql2.sock [accesses second server
happily]
***BUT***
shell> mysql --port=3307 [accesses the first server and not the
second!!]
Does that mean that the first server's port 3306 is hard-coded into
MySQL ?
Is this a bug ?
Or am I missing something ?
What is the work-around ?
Mike