CodePudding user response:
Mysql under Windows configuration file named: my. Ini. Under Linux system configuration file called: my. CNFFind the configuration file,
Under the [Server] Port field, can be modified, restart service
[Client] under the Port number field is modified on the Client side, oh