Port communication, ingress port is bound, is there any restriction on exit?

give an example,

the local client accesses the remote mysql server 3306 port.
requires access to remote port 3306.

my question is: does the network of the local client need to apply? Local access to remote port 3306, which port is used by the local network card?

non-computer class, asked a stupid question, thank you in advance.

Feb.28,2021

No, local random port

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-248d967-24e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-248d967-24e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?