This is what I'm doing:
mysql --host=localhost --port=9999 mysql -u root -p --execute="show tables;"
The command works (connecting to port 3306) no matter what I provide in --port argument. I have two mysql servers running on one machine, and want to connect to the second one by explicitly providing its port number. What's going on? Why does mysql ignore this parameter?
To be clear: the client actually takes the port command, it complains if the port is wrong but it ignores it and connects by socket instead. I started debugging the binary when I found this answer.
– John Dec 20 '19 at 04:23It's not a compatibility problem, it's just lack of professionalism. It plagues many opensource projects. They have devs who are often not very reasonable
– John Dec 26 '21 at 01:30