Repro: 1. `dolt sql-server --host=0.0.0.0 --port=3307` 2. `dolt sql-client -P 3307 -u root -q "select @@port;" --use-db=db` Step 2 output: ```txt +----------------+ | @@SESSION.port | +----------------+ | 3306 | +----------------+ ```