How do I find my MySQL host and port?
Answer
You’ll find the port the process is bound to near the top. MySQL defaults to
port 3306 unless you specify another line in the /etc/my. cnf config file. Then it is very likely you are using the default port.