Current location - Quotes Website - Collection of slogans - How to find the port where mysql is located in linux system
How to find the port where mysql is located in linux system
Mine. My.cnf under Linux system), mysql server will read this file when it is started, and set the related running environment parameters.

One parameter in this file is port.

Port = 3306 # Set the default port for mysql clients to connect to the server.

Find my.ini (my.cnf under Linux system) in the mysql running directory, and just check this parameter.