MySQL 5.7 Release Notes
When the --uri option is
specified in combination with some of the individual parameters,
the address specified by the
--uri option is used as the base
connection data and the values provided using individual
parameters override the corresponding value from the URI. If the
--user option is used, it would
replace any user specified as part of a URI.
For example to establish an XSession and override
user from the URI:
shell> mysqlsh --uri user@localhost:33065 --user otheruser