The materials we need to prepare are: computer, mysql query tool.
1. First, open the mysql query tool.
2. Right-click the mysql connection you want to view, and then click the Edit Connection button.
3. At this point, you can see the host name or IP address and port number of mysql connection.